'The Victor by the Grace of God'),[2][3] was the first ruler of the Emirate of Granada, the last independent Muslim state on the Iberian Peninsula, and the founder of its ruling Nasrid dynasty.
The Emirate of Granada, which Muhammad founded, and the Nasrid royal house, lasted for two more centuries until it was annexed by Castile in 1492.
His successors would continue to build the palace and fortress complex and reside there, and it has lasted to the present day as the architectural legacy of the emirate.
[16] Despite his popularity and his success in Al-Andalus, Ibn Hud had suffered defeats against the Christians, including at Alanje in 1230 and at Jerez in 1231, followed by the loss of Badajoz and Extremadura.
[3][19] The defeats suffered by Ibn Hud eroded his credibility; rebellions broke out in parts of his domain, including Muhammad's small town of Arjona.
With help from Ibn Hud's rivals, the Banu al-Mawl, Muhammad briefly seized control of the former disputed seat of Córdoba.
After these failures, Muhammad once again declared his allegiance to Ibn Hud and kept his rule over a small region containing Arjona, Jaén, Porcuna, Guadix, and Baeza.
[27] According to Ibn al-Khatib, he entered the city dressed like a sufi, in a plain wool cap, coarse clothes and sandals.
[31] He pressured his tax collectors to collect the necessary funds for the construction, going as far as executing Almería's tax-gatherer Abu Muhammad ibn Arus to enforce his demands.
Ferdinand did not want to risk assaulting the city, so his tactic was to cut it off from the rest of the Muslim territory and starve it into submission.
[36][37] On the other hand, Muslim sources avoided mentions of any vassal-lord relation and tended to frame the relationship as between equals with certain obligations.
In 1248, Muhammad demonstrated his commitment to Ferdinand by sending a contingent to help the Castilian conquest of the Muslim-held Seville.
[46] As part of his crusade against Muslim North Africa, Alfonso built up his military presence in Cadiz and El Puerto de Santa María close to Granadan territory.
[46] He began talks with Abu Yusuf Yaqub, the Marinid Sultan in Morocco, who then sent troops to Granada, numbering between 300 and 3,000 according to different sources.
[52] Alfonso argued that the barricade was to protect the entourage from Christian thieves, but Muhammad was angered, and ordered troops in his border towns to prepare for war.
Muhammad soon sued for peace, and the resulting settlement was devastating for the rebels: the Muslims of Andalusia suffered mass expulsions, replaced by Christians.
On the one hand, it was soundly defeated, and according to the peace treaty signed at Alcalá de Benzaide had to pay an annual tribute of 250,000 maravedíes to Castile—much larger than what had been paid before the rebellion.
Professor of Hispano-Islamic history Rachel Arié suggested that contributing factors may have been the 1257 declaration of Muhammad's sons—Muhammad and Yusuf—as heirs and his 1266 decision to marry one of his granddaughter Fatima [62]to a Nasrid cousin instead of one of the Banu Ashqilula.
In contrast, another historian of Islamic Spain, María Jesús Rubiera Mata rejected these explanations; she argued that the Banu Ashqilula were worried about Muhammad's decision to invite North African forces during the 1264 Revolt of the Mudéjars because the new military power threatened the Banu Ashqilula's position as the strongest military power in the Emirate.
[60] The Banu Ashqilula sought assistance from Alfonso X of Castile, who was happy to support the rebellion to undermine Muhammad's authority.
[63] In the resulting agreement of Alcalá de Benzaide, Muhammad renounced his claims over Jerez and Murcia—territories not under his control—and promised to pay an annual tribute of 250,000 maravedies.
Muhammad countered by convincing Nuño González, the commander of the Castilian forces sent to support the Banu Ashqilula, to rebel against Alfonso.
Nuño González, who had grievances against his king, agreed; in 1272 he and his Castilian noble allies began operations against Castile from Granada.
Muhammad had successfully deprived Castile of Nuño González's forces and gained allies in his conflict against the Banu Ashqilula.
Before these efforts bore fruit, Muhammad suffered fatal injuries after falling from a horse on 22 January 1273 (29 Jumada al-Thani 671 AH),[64][59][65] near the city of Granada during a minor military expedition.
[66][59] Muhammad's main legacy was the founding of the Emirate of Granada under the rule of the Nasrid dynasty, which on his death was the only independent Muslim state remaining in the Iberian peninsula,[69] and would last for little over two centuries before its fall in 1492.
[70] According to professor of Spanish history L. P. Harvey, he "managed to snatch from disaster ... a relatively secure refuge for Islam in the peninsula".
[70] His rule was characterized both by his "unheroic" part in the fall of Muslim cities like Seville and Jaén, as well his vigilance and political astuteness which ensured the survival of Granada.
[70] He was willing to enter into compromises, including accepting vassalage to Castile, as well as to switch alliances between Christians and Muslims, to preserve the emirate's independence.
[70][5] The Encyclopaedia of Islam comments that while his rule did not have any "spectacular victories", he did create a stable regime in Granada and start the construction of the Alhambra, a "lasting memorial to the Nasrids".