Critics accused the Islamist-led government that followed Ali of allowing extremists too much freedom. Since then, a caretaker government and a coalition government elected at the end of 2014 have taken a tougher line, going to court to take back mosques, sweeping up hundreds of suspected militants, and curbing militant websites that recruit for Iraq and Syria.