In the 7th Century, it was conquered by the Arab Muslims who built a city which they called Kairouan. This was the first Arab Muslim city in Tunisia. Many Muslim dynasties (monarchies) ruled Tunisia. One of the best known dynasties was the Zirids dynasty. The Zirids were Berber people and followed the rules of the Fatimides, a bigger dynasty in Cairo.