There are few surviving monuments of early Islamic architecture in Libya. Some traces of the Umayyad-era fortifications of Tripoli have been discovered, consisting of thick stone walls.[6] The oldest significant examples of Islamic architecture are from the 10th century, when the region saw a period of relative prosperity under Fatimid control. During this time, the Fatimids developed forts and garrison towns to serve as staging posts between Egypt and Ifriqiya.[6][7]
The best-known site of this period is in Ajdabiya, where the Fatimids built a fortified palace and a mosque whose remains have been uncovered and documented by modern archeologists.[6][8] The mosque was built with mudbrick walls, though stone was used for pillars and as reinforcements for the building's corners. It had a hypostyle form typical of other Fatimid mosques, with rows of pillars forming aisles running perpendicular to the southwest wall (the qibla wall).[9] Like other early Fatimid mosques, it had no minaret when built, though one was added later.[9][8] The palace was a rectangular building made of stone, with rooms arranged around a central courtyard.[6] At one end of the courtyard, opposite the entrance, was a large reception hall consisting of an iwan terminating in an apse-like section projecting from the rest of the building. This apse was covered by a semi-dome with squinches.[10]
Another important Fatimid site is Madina Sultan (present-day Sirte), which has also been excavated by modern archeologists. It was a town enclosed by an oval perimeter wall with several gates.[6] Among the most significant buildings discovered is the main mosque, which was also hypostyle in form, though its aisles ran parallel to the qibla wall instead of perpendicular to it. It had a monumental entrance portal on its north side, a feature shared with the Fatimid Great Mosque of Mahdiya. Some traces of the mosque's original decoration have been discovered as well, including coloured glass windows with carved stucco frames.[11]
In Tripoli, the oldest Islamic monument is al-Naqah Mosque,[6] though its history is not well-known.[7] It may have been built by the Fatimid caliph al-Mu'izz in 973, though it may be older.[6] An inscription records that it was reconstructed in 1610–1611 (1019 AH)[7] by the governor Safar Dey.[12]: 390 Its overall shape is irregular, suggesting multiple modifications throughout its history, and it incorporates re-used Roman and Byzantine columns. It has a hypostyle form with columns supporting rows of domes.[6][7]
Other Fatimid sites are attested in historical sources but not all have been investigated by archeologists.[13] Few major monuments have been preserved from the period between Fatimid rule and later Ottoman rule, although a number of small local mosques across the country may still date from the pre-Ottoman period. For example, there is a 12th-century mosque in the Awjila oasis with a hypostyle prayer hall covered by conical domes. The region of the Nafusa Mountains region contains some mosques dating to the 13th century or earlier, characterized by their low profile, partially-underground structures, and lack of minarets.[13]
The Ottomans conquered Tripoli in 1551 and made it the capital of a province roughly corresponding to modern-day Libya. The first Ottoman governor, known as Dragut or Darghut (d. 1565), repaired and redeveloped the city's fortifications, giving the old city (medina) the roughly pentagonal shape it has today.[12]: 389 He also built a new palatial complex, the Saray Dragut, and a new congregational mosque nearby, the Sidi Darghut Mosque, which became a new focus of urban development in the city.[7][12]: 389–390 The mosque was partly destroyed in World War II and subsequently rebuilt.[7]
Tripoli's apogee came under the rule of the Qaramanli dynasty between 1711 and 1835. Ahmad Bey, the dynasty's founder, added significantly to its urban fabric.[7][12]: 394 He commissioned the Mosque of Ahmad Pasha al-Qaramanli, one of the largest and most important mosques in the city, built between 1736 and 1738. It is a large hypostyle mosque covered by 25 domes supported by marble columns, with an attached madrasa and a mausoleum for Ahmad Bey. On the inside, the mosque is heavily decorated with underglaze-painted tiles and carved stucco.[7] The mosque's minaret has the pointed form typical of Ottoman minarets,[7] which is also typical of other Ottoman-era mosques in the city.[12]: 393 The mosque and its surroundings express a provincial Ottoman style with some similarities to contemporary architecture in Ottoman Tunisia.[7]