The mosque that served as a medieval hospital and mental asylum

The mosque that served as a medieval hospital and mental asylum
Image: Intellect (generated)

In short: Architecture is rarely static. The Mosque of Ibn Tulun, a 9th-century masterpiece of Abbasid design, has lived many lives. Beyond its role as a place of worship, it served as a military hospital, a salt warehouse, a blacksmith workshop, and even a mental asylum for the city's poor.

Commissioned by Ahmad ibn Tulun between 876 and 879 CE, the mosque is the oldest well-preserved Islamic structure in Egypt. Its design was heavily influenced by the Abbasid capital of Samarra, featuring a large open courtyard, rows of pointed arches, and a minaret with a unique external spiral staircase. While it was built as a congregational mosque for the new administrative capital of al-Qata'i, the city was largely razed in 905 CE, leaving only the mosque and the adjoining Dar al-Imara palace standing.

The building's history is marked by dramatic shifts in utility. By the 12th century, it functioned as a caravanserai for North African pilgrims. Following the Mamluk era, its condition deteriorated so severely that it was used for various industrial and civic purposes. In the early 19th century, under the reign of Muhammad Ali, it was converted into a military hospital and a salt warehouse. By 1846, Clot Bey received permission to transform the site into a mental asylum, which eventually transitioned into a poorhouse.

These diverse uses led to significant physical degradation. During its time as a poorhouse, inhabitants constructed ad hoc structures inside the mosque, and some arches were walled up—an act criticized by 19th-century observers as vandalism. It wasn't until 1880 that the building was officially closed and evicted of its inhabitants to begin a long, intermittent process of restoration. Today, it stands as a monument to both architectural endurance and the shifting needs of the urban populations that have sought shelter within its walls over a millennium.

Interestingly, the mosque's original layout included a medical clinic within its outer enclosure, known as the ziyada. This suggests that while its 19th-century role as a hospital was a later adaptation, the integration of healthcare into the mosque's spatial design has deep historical roots in the region.

Opens the Intellect+ feed with this card first. Swipe up for the next one.

Sources

To cite this card, link to https://intellectplus.co.uk/app/health-mosque-of-ibn-tulun.

How we source, check and correct cards: Editorial standards.

General information, not professional advice. Spotted an error? Flag the card or see corrections and complaints.

Intellect Plus is a visual educational discovery platform for exploring fascinating facts and ideas. Brain Food, Not Brain Rot. What is Intellect Plus?

Related

Finding something worth knowing…