The Great Mosque of Kairouan (in Tunisia) is one of the best preserved and most significant examples of early great mosques. Founded in 670, it contains all of the architectural features that distinguish early mosques: a minaret , a large courtyard surrounded by porticos , and a hypostyle prayer hall.