the spread of nomadism in areas where agriculture had previously been dominant. Some 1,700 years of intermittent but continual progress was undone within a decade as in most part of the country the land was laid to waste for nearly two centuries. In the 13th century under the prosperous Hafsids dynasty that ruled Ifriqiya, the city started to emerge from its ruins. It is only under the Husainid Dynasty that Kairouan started to find an honorable place in the country and throughout the Islamic world. In 1881, Kairouan was taken by the French, after which non-Muslims were allowed access to the city