This is an archived article that was published on sltrib.com in 2015, and information in the article may be outdated. It is provided only for personal research purposes and may not be reprinted.

Madrid • Tunisian Prime Minister Habib Essid said Tuesday his country needs jobs to counter the threat of terror attacks like the two this year that targeted tourists, but his nation's important tourism sector won't fully recover for another two to three years.

Essid told The Associated Press in an interview that the unemployment rate in Tunisia of 15 percent nationally and 33 percent for young university graduates is the biggest risk factor for future attacks.

"There is an economic problem and jobless people who don't have any other solution economically, so they go and become terrorists," Essid said before attending an international conference on extremism by the Madrid Club group of former global leaders and heads of state. "The root of the problem is the high degree of joblessness."

Tunisia's tourism industry was hit incredibly hard this year following an attack in March on the Bardo Museum in the capital, Tunis, that killed 21 people, and a June attack at a beach resort in Sousse that killed 38.

Most victims were tourists, prompting a huge drop in demand from European visitors for a country that experts say depends on tourism for about 20 percent of its economic output.

Essid said tourism is slowly starting to recover but he predicted it will be "a matter of two or three years until the sector gets a full recovery."

Essid said the government has acted to protect the country from the advance of Islamic State militants in Libya, who recently extended their reach to the Mediterranean city of Sabrata, just 43 miles from the Tunisian border.

"We have information that the risk is there and we have taken into account these new elements with the deployment of our armed forces," Essid said.

He didn't provide specifics regarding recent deployments but said Tunisia's efforts to protect itself from the IS advance include a 124-mile earthen berm constructed along the border, plus beefed-up border controls and military presence.