At the beginning of this period, the Ottomans rule present-day Libya, Tunisia, and Algeria, but the empire soon finds itself overextended. By the 1700s, the power of the Turkish governors sent from Anatolia is eclipsed by that of local military leaders, who rule with little intervention from the sultan in Istanbul; the Ottoman influence is instead felt in the arts of the Maghrib into which are integrated Turkish motifs. Morocco, just beyond the reach of the Ottomans, remains independent. In the mid-seventeenth century, the Alawid/Filali dynasty replaces the Sacdid sharifs, and continues to rule today.
16121702The Muradids, originally regents of the Ottomans, emerge as semi-independent rulers in Tunisia. With the 1609 expulsion of the Moriscos from Spain, the agriculture and industry of the region is stimulated and trade with Europe increases. The Muradids undertake the restoration of various monuments in the old capital of Kairouan and the construction of new buildings in the rising commercial center of Tunis. The Mosque of Hammuda Pasha (1665) has the hypostyle plan typical of the Maghrib, but this type is eventually replaced by the Ottoman-style domed prayer hall, represented by the Sidi Mahriz Mosque built in 1675.
1659The last of the Sacdian rulers is assassinated in Marrakesh, the dynasty's final holdout in Morocco. The Alawids, who have been gathering power under the leadership of Mawlay Rashid (r. 166472), expand out of their lands in the eastern part of the country to take Fez and then Marrakech.
1660An Ottoman governor commissions the Mosque of the Fisherman in Algiers. Although the plan is sent from Istanbul, the elevation of the mosque clearly has local influences.
1672Mawlay Ismail (r. 16721727) succeeds as Alawid king. After years of constant fighting, he is able to gain much territory, but Morocco remains an aggregate of different groups with little cohesion. In Ismail's capital of Meknès, a vast palace quarter is constructed with the forced labor of local and Christian slaves.
1705The Husaynid family replaces the Muradids as governors of Tunisia and maintains control there until the arrival of the French in the nineteenth century.
1711Tripoli, formerly a modest trade town, becomes an important regional city under the leadership of the Qaramanlis (17111835). Ahmed Bey (r. 171145), first of this dynasty to hold the governorship, extends the family's influence over neighboring Barqa and Fezzan and sponsors much architecture, including a mosque complex (173638) that is completed in a provincial Ottoman style.
1769Mawlay Muhammad (r. 175792) of Morocco expels the Portuguese from their last site on the Atlantic coast of Africa. He develops foreign trade instead with Denmark, Sweden, England, and France.
17941822Reign of Mawlay Sulayman. Seeing foreign influence as the source of rebellion in his country, Sulayman closes the interior of Morocco to outsiders and does not permit his own people to leave the country.