The Great Mosque of Kairouan (in Tunisia) is considered the ancestor of all the mosques in the western Islamic world. Its original marble columns and sculptures were of Roman workmanship brought in from Carthage and other elements resemble Roman form. It is one of the best preserved and most significant examples of early great mosques, founded in 670 AD and dating in its present form largely from the Aghlabid period (ninth century). The Great Mosque of Kairouan is constituted of a massive square minaret, a large courtyard surrounded by porticos and a huge hypostyle prayer hall covered on its axis by two cupolas. The Great Mosque of Samarra in Iraq, completed in 847 AD, combined the hypostyle architecture of rows of columns supporting a flat base above which a huge spiraling minaret was constructed.