Al-Attarine Madrasa

The Al-Attarine Madrasa or Medersa al-Attarine (مدرسة العطارين) is a madrasa in Fes, Morocco, near the Al-Qarawiyyin Mosque. It was built by the Marinid sultan Uthman II Abu Said (r. 1310-1331) in 1323-5. The madrasa takes its name from the Souk al-Attarine, the spice and perfume market. It is considered one of the highest achievements of Marinid architecture due to its rich and harmonious decoration and its efficient use of limited space.

Context: Marinid madrasas
The Marinids were prolific builders of madrasas, a type of institution which originated in northeastern Iran by the early 11th century and was progressively adopted further west. These establishments served to train Islamic scholars, particularly in Islamic law and jurisprudence (fiqh). The madrasa in the Sunni world was generally antithetical to more "heterodox" religious doctrines, including the doctrine espoused by the Almohad dynasty. As such, it only came to flourish in Morocco under the Marinid dynasty which succeeded the Almohads. To the Marinids, madrasas played a part in bolstering the political legitimacy of their dynasty. They used this patronage to encourage the loyalty of Fes's influential but fiercely independent religious elites and also to portray themselves to the general population as protectors and promoters of orthodox Sunni Islam. The madrasas also served to train the scholars and elites who operated their state's bureaucracy.

The al-Attarine Madrasa, along with other nearby madrasas like the Saffarin and the Mesbahiyya, was built in close proximity to the al-Qarawiyyin Mosque/University, the main center of learning in Fes and historically the most important intellectual center of Morocco. The madrasas played a supporting role to the Qarawiyyin; unlike the mosque, they provided accommodations for students, particularly those coming from outside of Fes. Many of these students were poor, seeking sufficient education to gain a higher position in their home towns, and the madrasas provided them with basic necessities such as lodging and bread. However, the madrasas were also teaching institutions in their own right and offered their own courses, with some Islamic scholars making their reputation by teaching at certain madrasas.

Construction and operation of the madrasa
The al-Attarine madrasa was built between 1323 and 1325 on the orders of the Marinid sultan Abu Sa'id Uthman II. The supervisor of construction was Sheikh Beni Abu Muhammad Abdallah ibn Qasim al-Mizwar. According to the Rawd el-Qirtas (historical chronicle), the sultan personally observed the laying of the madrasa's foundations, in the company of local ulema.

The creation of the madrasa, as with all Islamic religious and charitable institutions of the time, required the endowment of a habous, a charitable trust usually consisting of mortmain properties, which provided revenues to sustain the madrasa's operations and upkeep, set up on the sultan's directive. This provided for the madrasa to host an imam, muezzins, teachers, and accommodations for 50-60 students. Most of the students at this particular madrasa were from towns and cities in northwestern Morocco such as Tangier, Larache, and Ksar el-Kebir.

The madrasa has been classified as historic heritage monument in Morocco since 1915. The madrasa has since been restored many times, but in a manner consistent with its original architectural style. Today it is open as a historic site and tourist attraction.

Layout
The madrasa is a two-story building accessed via an L-shaped bent entrance at the eastern end of Tala'a Kebira street. The vestibule leads to the main courtyard of the building, entered via an archway with a wooden screen (mashrabiya). The south and north sides of the courtyard are occupied by galleries with two square pillars and two smaller marble columns, which support three carved wood arches in the middle and two smaller stucco muqarnas arches on the sides. Above these galleries are the facades of the second floor marked by windows looking into the courtyard. This second floor, accessed via a staircase off the southern side of the entrance vestibule, is occupied by 30 rooms which served as sleeping quarters for the students. This makes for an overall arrangement similar to the slightly earlier Madrasa as-Sahrij. The entrance vestibule also grants access to a mida'a (ablutions hall) which is located at its northern side.

At the courtyard's eastern end is another decorated archway which grants entrance to the prayer hall. Most of the Marinid-era madrasas were oriented so that the main axis of the building was already aligned with the qibla (the direction of prayer), allowing the mihrab (niche symbolizing the qibla) of the prayer hall to be allowed with the entrance of the main courtyard. However, the space into which the al-Attarine Madrasa was built evidently did not allow for this layout, and instead the mihrab is off to the side on the southern wall of the prayer hall, on an axis perpendicular to the main axis of the building. The prayer hall itself is rectangular, but a triple-arched gallery on its north side allowed architects to place a square wooden cupola over the main space in front of the mihrab. This unusual but elegant solution to the limited and awkward space available for construction demonstrates the ingenuity and rational approach to design that Marinid architects had achieved by this time.

Decoration
Although its exterior is completely plain (like most traditional Moroccan buildings of its kind), the madrasa is famous for its extensive and sophisticated interior decoration, which exhibits a rigorous balance between different elements, marking the period of highest achievement in Marinid architecture. The main courtyard demonstrates this in particular. The floor pavement and the lower walls and pillars are covered in zellij (mosaic tilework). While most of the zellij is arranged to form geometric patterns and other motifs, its top layer, near eye-level, features a band of calligraphic inscriptions on sgraffito-style tiles running around the courtyard. Above this, in general, is a zone of extensive and intricately-carved stucco decoration, including another layer of calligraphic decoration, niches and arches sculpted with muqarnas, and large surfaces covered in a diverse array of arabesques (floral and vegetal patterns) and other Moroccan motifs. Lastly, the upper zones generally feature surfaces of carved cedar wood, culminating in richly sculpted wooden eaves projecting over the top of the walls. Wooden artwork is also present in the pyramidal wooden cupola ceiling of the prayer hall, carved with geometric star patterns (similar to that found more broadly in Moorish architecture). The wood-carving on display here is also considered an example of the high point of Marinid artwork.

The prayer hall also features extensive stucco decoration, especially around the richly-decorated mihrab niche. The entrance of the hall consists of a "lambrequin"-style arch whose intrados are carved with muqarnas. The upper walls of the chamber, below the wooden cupola, also feature windows of coloured glass which are set into lead grilles (instead of the much more common stucco grilles of that period) forming intricate geometric or floral motifs. The marble (or onyx) columns and the engaged columns of the courtyard and prayer hall also feature exceptionally elegant and richly-carved capitals, among the best examples of their kind in this period.

The madrasa also features notable examples of Marinid-era ornamental metalwork. The doors of the madrasa's entrance are made of cedar wood but are covered in decorative bronze plating. The current doors in place today are replicas of the originals which are now kept at the Dar Batha Museum. The plating is composed of many pieces assembled together to form an interlacing geometric pattern similar to that found in other medieval Moroccan art forms such as Qur'anic or manuscript decoration. Each piece is chiseled with a background of arabesque or vegetal motifs, as well as a small Kufic script composition inside each of the octagonal stars in the wider geometric pattern. This design marks an evolution and refinement of the earlier Almoravid-era bronze-plated decoration on the doors of the nearby Qarawiyyin Mosque. Another piece of notable metalwork in the madrasa is the original bronze chandelier hanging in the prayer hall, which includes an inscription praising the madrasa's founder.