Tunisian President Beji Caid Essebsi declared a state of emergency on Saturday to give the government more powers following an Islamic militant attack on a beach hotel in Sousse, where 38 foreign tourists, mostly Britons, were killed.
Tunisia's emergency law temporarily gives the government more executive flexibility, hands the army and police more authority, and restricts certain rights such as the right to public assembly.The statement from the President's office said Essebsi would give a speech on national television with more details at 1600 GMT.
The attack on the Sousse beach resort last Friday followed a gun attack on the Bardo museum in Tunis in March - two of the worst militant assaults in Tunisia's modern history, and a pressing threat to its vital tourist industry.
Tunisian officials say all three gunmen in those two attacks had been trained at the same time, over the border in jihadist camps in Libya, where a conflict between two rival governments has allowed Islamist militant groups to gain ground.
Tunisia last had a state of emergency during the 2011 uprising against autocrat Zine el-Abidine Ben Ali.In reaction to militant recruiters, the government says it will close 80 mosques that are operating illegally or preaching extremist messages.
Tunisian authorities believe militant group Ansar al-Sharia is responsible for orchestrating the attack against the Sousse hotel, which prompted thousands of tourists to leave Tunisia and is expected to cause $500 million in losses to the sector.
Islamic State militants, though, have claimed the massacre on the Imperial Marhaba hotel a week ago when the gunman shot tourists as they sat at the beach and pool in the worst such militant attack in the country's modern history.
Ansar al-Sharia, an al Qaeda linked organisation, was blamed for the storming of the US embassy in Tunis in 2012 and the assassination of two Tunisian opposition leaders. But it has mostly disbanded and its hardline militants left to fight overseas in Iraq, Syria and Libya.
"For the moment, this was Ansar al-Sharia who were behind this," said the Tunisian security source. Islamic State also claimed the Bardo attack, but the government said it was linked to local Okba Ibn Nafaa brigade.
Tunisian officials say all three gunmen in those two attacks had been trained at the same time over the border in jihadist camps in Libya, where a conflict between two rival governments has allowed Islamist militant groups to gain ground.
While Ansar al-Sharia and Okba Ibn Nafaa are tied to the al-Qaeda franchise, just as in other regions, experts say younger fighters and recruits may be breaking away inspired more by the recent victories and propaganda of Islamic State.