Muhammad V, the Nasrid Sultan Who Built the Alhambra
Muhammad V ruled Granada twice, survived exile in Fez, and returned in 1362 to build the Alhambra's Palace of the Lions during Nasrid Granada's golden age.
Seven years resident in Granada. Specialist in Nasrid architecture, Al-Andalus history, and Andalusian walking routes.
Published
Muhammad V ruled Granada twice: first as a sixteen-year-old thrust onto the throne after his father's murder, then as the sultan who transformed the Alhambra. A 1359 palace coup sent him into three years of exile in Fez; he returned in 1362 with Castilian soldiers and ruled without serious challenge for the next twenty-nine years. Most of what visitors now photograph inside the Alhambra — the Palace of the Lions, the Comares façade — was built during that second reign.
Muhammad V was born on 4 January 1339, son of Yusuf I, the seventh Nasrid sultan of Granada. He came to the throne at sixteen, still legally a minor, after his father was stabbed to death while at prayer in Granada's main mosque on the last day of Ramadan 1354, killed by a slave later described in court records as deranged[4].
Too young to govern alone, Muhammad V relied on the hajib Ridwan and the vizier Ibn al-Khatib, a historian and poet who would stay loyal to him through exile and restoration alike. It set the pattern for his whole career: his real strength lay less in his own sword-arm than in his ability to keep capable men close.
The kingdom he inherited was already a reduced one, a mountain state wedged between Castile and the Mediterranean, its independence resting more on tribute payments, fortified geography, and the rivalries of its Christian neighbours than on military strength. Muhammad V would spend the rest of his reign working that narrow margin, a relationship with Castile that swung between alliance and wariness, always with fewer options than his palace architecture suggests.
Coup and exile: three years in Fez
The regency held for five years, but on 21 August 1359 a palace coup drove Muhammad V from the Alhambra. He fled first to Guadix, which sheltered him, then crossed into Morocco that November while a rival, Ismail II, took the throne in Granada[5].
The coup scattered the court along with the sultan. Princes, scholars, and literary men fled with him, among them Ibn al-Khatib himself and the young poet Ibn Zamrak, both bound for the Marinid capital[6]. In Fez, Muhammad V and Ibn al-Khatib crossed paths with the historian Ibn Khaldun, who backed their claim to Granada[7].
Timeline
1339
Birth of the future sultan
1354
Accession
Becomes sultan at sixteen after Yusuf I's murder
1359
Deposed
Palace coup exiles him to Fez
1362
Restored
Returns with Castilian military support
1391
Dies
Succeeded by his son, Yusuf II
Restoration: the Castilian alliance that brought him home
Three years of exile ended in 1362, when Muhammad V returned to the peninsula backed by an alliance with Castile under Pedro I. Together their forces took Málaga. His rival Muhammad VI, sensing defeat, surrendered to Pedro and asked for mercy; Pedro executed him instead, clearing the way for Muhammad V's second reign[8].
The alliance cut both ways. When Pedro was assassinated in 1369, Muhammad V used the chaos in Castile to retake Algeciras, a port his family had lost decades earlier, and had it demolished so it could never again anchor an enemy garrison[9].
Domestically, he also reorganised command of the frontier troops, the Zenata mercenaries known as the Ghazis, eliminating the office of their independent chief in 1370 and bringing them for the first time under direct Nasrid family authority[13]. It was a quiet consolidation of power, the kind that rarely makes the chronicles but matters more than a captured city.
The golden age: peace, poets, and the Palace of the Lions
Muhammad V's second reign lasted twenty-nine years, and Nasrid Granada spent most of them at relative peace. The court that gathered around him became a centre of the western Islamic world's intellectual life: Ibn al-Khatib remained vizier for the better part of a decade after the restoration, serving until 1371 before court intrigue drove him to flee to Fez, and Ibn Zamrak succeeded him as the court's leading poet.
Almost everything visitors recognise in the Alhambra today dates from this period. Muhammad V rebuilt the Mexuar council hall, refurbished the Comares Palace and raised its ornate entrance façade in the Patio del Cuarto Dorado, and finished the baths before turning to an entirely new palace of his own design: the Palace of the Lions, whose fountain and courtyard draw together the whole Nasrid decorative tradition[10].
How each of these spaces functioned politically, room by room, from the earlier Comares core through Muhammad V's additions to what Boabdil eventually surrendered in 1492, is covered in the political history of the Alhambra's rooms. What matters here is simpler: the Palace of the Lions and most of his distinctive additions date from after 1362.
The Maristan: a sultan's hospital in the Albaicín
Muhammad V's building projects were not confined to the hilltop palace. In 1365 he founded the Maristan, Granada's first hospital, on a site in the Axares quarter of the Albaicín, reusing the line of an older fortification wall as its foundation[11]. It served the sick and the mentally ill together, an unusual combination for a fourteenth-century hospital, for well over a century before later civic uses, and eventual ruin, took it over.
The building's foundational inscription, an unusually detailed stone tablet, records the exact dates of construction, 1365 to 1367, alongside the sultan's genealogy and the patients the hospital was meant to serve[3]. It is one of the few Nasrid monuments whose builder left, quite literally, a signed and dated plaque.
Muhammad V died on 16 January 1391[1], having just turned fifty-two, and was succeeded by his son Yusuf II. His death is usually treated as the effective end of the golden years his reign and his father's had built together, and the century that followed brought renewed succession crises that would weaken the dynasty for good.
Contemporary description of him, from courtiers who knew him, is unusually consistent: a handsome man, generous, sensitive to others' misfortune, a devout Muslim who dressed correctly rather than lavishly and did not surround himself with a large retinue. Those qualities, more than military brilliance, are credited with winning him the loyalty of subjects who had already watched him lose the throne once[12].
None of this required a legendary reputation. Muhammad V is not the sultan visitors ask about by name, the way they ask about Boabdil. But almost every photograph taken inside the Alhambra's Nasrid Palaces is, in some sense, a photograph of his work, commissioned by a man who spent three years in exile and then very nearly three decades building.
Frequently asked questions
Who was Muhammad V, the Nasrid sultan of Granada?
Muhammad V (1339–1391) was the eighth Nasrid sultan of Granada, ruling twice: briefly as a teenager from 1354 to 1359, then for twenty-nine years from 1362 until his death. His second reign produced most of the Alhambra's surviving palace architecture, including the Palace of the Lions, and is generally treated as the high point of Nasrid culture.
Who built the Court of the Lions?
Muhammad V inspired and built the Palace of the Lions, of which the Court of the Lions is the centrepiece, during his second reign between 1362 and 1391. It stands apart from the earlier Comares Palace as a private residence rather than a hall of state, and it draws together the full range of Nasrid decorative techniques developed up to that point.
Which Nasrid sultan built most of the Alhambra?
Muhammad V is credited with most of the Alhambra as it survives today. Working on top of the core his father Yusuf I had built, he rebuilt the Mexuar, refurbished the Comares Palace and its entrance façade, finished the royal baths, and added the Palace of the Lions.
What is the Maristan of Granada?
The Maristan was a hospital Muhammad V founded in the Axares quarter of the Albaicín, built between 1365 and 1367. It treated the sick and mentally ill together, an unusual combination for its time, and its foundational inscription still records the exact dates of construction and the sultan's genealogy.
Why was Muhammad V exiled from Granada?
A palace coup on 21 August 1359 forced him from the throne in favour of a rival faction. He fled first to Guadix and then to Fez, where he spent three years at the Marinid court while two different relatives briefly occupied the Granada throne in succession.
How did Muhammad V return to power in 1362?
He returned with military support from Pedro I of Castile. Their combined forces captured Málaga, and his rival Muhammad VI surrendered to Pedro expecting clemency; Pedro executed him instead, leaving Muhammad V to reclaim the sultanate without further resistance.
When did Muhammad V die and who succeeded him?
Muhammad V died on 16 January 1391 and was succeeded by his son, Yusuf II. His death is generally treated as the end of the Nasrid dynasty's golden years, a period he and his father Yusuf I had built together.
“Muhammad V fue el inspirador de este bello palacio construido en su segundo mandato, entre 1362 y 1391, pues había sido derrocado tras apenas cinco años en el poder.”
“Muhammad V ocupo el trono con 16 años siendo un adolescente tras la muerte de su padre, Yusuf I, asesinado por un demente esclavo suyo mientras oraba en la mezquita el ultimo día del ramadán.”
“El 21 de agosto de 1359 tras un golpe de estado tuvo que huir y llegó a la ciudad de Guadix, que le acogió amistosamente. El 4 de noviembre consiguía salir hacia Marruecos y mientras tanto reinaba en Granada Ismail II.”
“Muhammad VI, reportedly on the advice of his allies, surrendered himself to Peter of Castile and asked for mercy. Peter executed him instead, leaving his ally Muhammad V to reclaim the throne in 1362.”
“When Peter was assassinated in 1369, leaving Castile in further chaos, Muhammad V took advantage of the situation to recapture Algeciras that year. He destroyed the city and from then on its former territory became attached to Gibraltar instead.”
“La Alhambra que conocemos actualmente es la de Muhammad V; lo hace con las obras del Mexuar, en los baños, levanta la excepcional Fachada de Comares, termina el Qasr al-Sultán (Palacio de Comares).”
“Muhammad V en 1365 aprovechó este lugar para la implantación del primer hospital de Granada, el Maristán, adaptándose a las dimensiones de la antigua coracha.”
“Era de hermosa presencia, liberal y franco, sensible al infortunio, musulmán piadoso, generoso e inteligente. Se ataviaba con vestidos correctos pero no lujosos y no se hacía seguir por gran cortejo.”
“Among his domestic reforms, Muhammad V eliminated the office of the shaykh al-ghuzat, the chief of the Ghazis, in 1370, placing the Zenata troops under the direct command of the Nasrid family for the first time.”