In 1518 the
Ottoman Empire gained control of Algeria. Under Ottoman rule, a hybrid style developed influenced by traditional Turkish styles, including central-plan mosques and glazed tile panels. The influence of
Ottoman architecture was largely limited to the Algerian coast and, in particular, the regional capital of Algiers. Algiers developed into a major town and witnessed regular architectural patronage, and as such most of the major monuments from this period are found there. By contrast, the city of Tlemcen, formerly a major capital, went into relative decline and saw far less architectural activity. A citadel-fortress, the
qasba (the origin of the current name "Casbah"), occupied the highest point of the town. (after recent restoration of the original floor plan), built in 1622, showing the main dome and side galleries with smaller domes The oldest surviving mosque from the Ottoman period in Algeria is the
Ali Bitchin (or 'Ali Bitshin) Mosque in Algiers, commissioned by an
admiral of the same name, a convert of
Italian origin, in 1622. Several other mosques in Algiers have (or had) a similar floor plan: the
Safir Mosque, rebuilt in 1826, the al-Sai'da (or al-Sayyida) Mosque, built by
Muhammad Ibn 'Uthman (r. 1766–1791) and demolished by the French in 1832, and two other mosques built in or near the
qasba by
Hussein Dey right after his accession to power in 1818. It was built in 1660–1661 by al-Hajj Habib, one of the Janissaries in Algiers, and became one of the most important
Hanafi mosques in the city. Some were still built elsewhere. One of the governors of
Constantine,
Salah Bey (d. 1792), built two madrasas in that city: the Madrasa of Sidi el-Kettani in 1775 and the Madrasa of Sidi al-Akhdar in 1779. The residential palace of the ruler in Algiers, the Janina or Jenina ('Little Garden'), was situated at the center of a larger palatial complex known as the Dar as-Sultan in the lower part of the city. This complex served as the ruling palace until 1816, when the Dey moved to the
qasba following a
British bombardment of the city that year. It was originally on a sloping site and had several stories. Its original ground floor, somewhat like a basement, contained storerooms, kitchens, stables, and shops along its exterior, but these have since disappeared and the floor above it has become the ground floor. The main building is a two-story structure centered around an internal square courtyard (the
wast ad-dar or 'center of the house'). The courtyard is ringed on all four sides by a two-story gallery with pointed horseshoe arches supported on marble columns. Diverse ceramic tiles, carved stucco,
lattice windows, and a fountain are used for decoration, with the decoration generally increasing in richness on the upper level. The rooms of the upper story are also grander and include the main reception hall. A grand staircase leads from the floor of this courtyard to an annex, the
dwira (also transliterated as
douira, meaning a smaller house or apartment), which was partly demolished in the 19th century. The grand staircase itself is unusual in North African domestic architecture of this period and suggests that the builders may have been familiar with European architecture. Until the 19th century, the
qasba contained the largest janissary barracks in the city. It contained a mosque, warehouses, shops, and other buildings for military purposes. The area around the palace also contained two main gardens and an
ostrich park. and the residence known as the
Palais des Rais (Palace of the
Rais), dating from the 16th century. A number of suburban and countryside villas have also been preserved outside the walled city, again characterized by internal courtyards. Between 1826 and 1835 the independent ruler
Ahmed Bey (also known as Hajj Ahmed) in Constantine, built a
palace for himself that includes courtyards and two large internal gardens. == Colonial era ==