A farmer's son at Arjona

Before 1232 Muhammad ibn Yusuf was, in the Primera Crónica General's unkind phrase, a man whose only trade was following the oxen and the plough[5]. He came from Arjona, a frontier town. His supposed descent from Sa'd ibn Ubadah, a companion of the Prophet, is read by the University of Granada historian Bárbara Boloix as a prestigious genealogy created to legitimise the power of his new line[6]; the fullest version comes from the Nasrid court author Ibn al-Khatib[7].
The world he rebelled in was already in pieces. The death of Caliph Yusuf II without an heir in 1224 had cracked the Almohad caliphate and left Al-Andalus to rival taifa rulers[8]; by 1232 the strongest of them was Ibn Hud, and Muhammad ibn Yusuf rose against him from his own town[9].
Nothing about that July promised a state. He held one fortified town in a country where strongmen rose and fell within a few years, and his next four years proved how little that was worth. The Almohad collapse had opened the field, but it opened it to anyone with a few hundred men and a grievance. What set him apart was not the first move; it was how many times he was willing to change the second.

Switching sides: from Córdoba to Granada

The proclamation was the easy part. Seville, taken in 1234, lasted barely a month in his hands[10].
So in 1236 he made the choice that explains everything after it: he turned on Ibn Hud and helped Ferdinand III of Castile take Córdoba, ending centuries of Muslim rule in the old caliphal capital[11]. It is an uncomfortable fact for anyone who wants a pure hero, and it is the clearest sign of the logic that governed his reign. Survival came first, and loyalty to a cause came a long way behind.
Granada was the reward. In 1237 or 1238, depending on the source, the city's notables invited him in and he made it his capital[12]. When he rode in, as Ibn al-Khatib tells it, he looked like a sufi, in a plain wool cap, coarse clothes and sandals[13]. It is hard not to read that as a message, my reading rather than a documented one: the man who had just helped Castile take Córdoba arrived looking like a penitent, not a conqueror.

The red hill: what he actually built

Ibn al-Ahmar chose his hill before he chose his palace. After taking Granada he inspected al-Hamra, where a small fortress already stood, and laid foundations there for his future residence and fortress[14]. The work was practical: three new towers on Sabika Hill, repairs to the ruined ones, and water channelled from the Darro River to make the summit habitable[15][16].
The Alhambra palace complex viewed from the Albaicin hillside, with the Sierra Nevada mountains behind

Explore nearby · Monument

Alhambra

The Alhambra is Granada's UNESCO fortress-palace: Nasrid Palaces, Alcazaba and Generalife gardens. Tickets sell out weeks ahead; book via the Patronato site.

The credit needs care. The Alhambra was built mainly between 1238 and 1358 under Ibn al-Ahmar and his successors[17], and the Patronato that runs the site gives the title of first great builder to Yusuf I, not to him[18]. The founder's contribution was the unglamorous part, a defensible, watered hill that later sultans could decorate.
The palaces visitors queue for belong to the longer story the political history of the Alhambra's rooms tells room by room. His hill is the stage they stand on.

Jaén, 1246: the price of survival

The bargain that defined his reign was struck outside Jaén. Castile besieged and took his hometown, Arjona, in 1244[19]; the next year Ferdinand III closed in on Jaén, judging it safer to cut the city off and starve it than to storm it[20]. In March 1246, seven months into the siege, Muhammad agreed terms[21].
As modern accounts give them, the terms were these:
  • He kissed Ferdinand's hand to mark his vassalage and promised "counsel and aid"[22]
  • He paid a yearly tribute that modern accounts put at 150,000 maravedíes[23]
  • He owed military help whenever Castile asked, for the 20 years of the truce[24]
  • Jaén's Muslim inhabitants were expelled once the Castilians entered[25]
1066 Granada massacre scene in Jewish history: a mob attacking the Jewish quarter of Nasrid-era Granada at dusk, the Alhambra hill silhouetted in the background, smoke rising over whitewashed rooftops, sombre red and amber tones

Deep dive · Article

1066 Granada Massacre: When the Jewish Golden Age Ended in a Day

The 1066 Granada massacre killed Joseph ha-Nagid and thousands of the city's Jews in a single day, ending three decades of Jewish power under Samuel ha-Nagid.

Call it vassalage or protection money, the logic was brutal and it worked. Castile's kings preferred Nasrid gold, and Nasrid rulers preferred paying it to risking total war[26]. That trade of gold for time is the root of Nasrid tribute to Castile, and it kept the emirate alive for two more centuries[3].
The cost was real. A ruler who kisses a king's hand in public loses something among his own people, and Ibn al-Ahmar spent the rest of his life paying that debt in soldiers, tribute and careful diplomacy. For the next decades the question was never whether Granada was free, only how much unfreedom it could afford.

Loyal vassal, then revolt: 1248 to 1273

Ferdinand collected quickly. In 1248 Muhammad sent a contingent to help Castile take Muslim-held Seville[27], and one account puts it at about 500 horsemen[28]. In 1254 he attended the Cortes at Toledo, renewing his loyalty and tribute before Alfonso X[29].
The emirate this paid for was small but relatively wealthy and densely populated[30], and its population grew as Muslims expelled from Castilian conquests settled there[31]. Survival, for Ibn al-Ahmar, meant being a place refugees could reach and Castile could tax.
Timeline
  1. 1232

    Arjona declares independence

  2. 1236

    Córdoba falls to Castile

    He helps Ferdinand III take the city

  3. 1237 or 1238

    Granada becomes his capital

    The city's notables invite him in

  4. 1246

    Jaén surrendered

    Vassalage and a 20-year truce

  5. 1248

    Granadan contingent at Seville

  6. 1264-1266

    Mudéjar revolt and the Ashqilula rebellion

  7. 1273

    Dies after a fall from his horse

The peace broke in 1264. On a night in Seville that year the Castilians locked and barricaded the area where he was staying[32]. By 1266 Granada was still fighting in the Mudéjar revolt when the Banu Ashqilula, allies from his own rise, rebelled against him[33].
The treaty that ended the fighting was costly, but it ensured the emirate's survival and left Granada the only independent Muslim state in the peninsula[34].
Ibn al-Ahmar died after a fall from his horse on 22 January 1273[35]. He was buried in a cemetery on Sabika Hill, east of the Alhambra[36], and on his deathbed advised his heir, Muhammad II, to seek Marinid protection against the Christian kingdoms[37].

What survives on the hill today

The historian L. P. Harvey judged that he "managed to snatch from disaster ... a relatively secure refuge for Islam in the peninsula"[38]. It is a fair verdict on a man who bought time rather than victories.
The hill is the place to test it. Start at the Alcazaba, the fortress end of the Alhambra, and look down to the Darro: walls, towers and water were his programme. The Alhambra and the Albayzín are together a UNESCO World Heritage property, and the Alhambra is the only preserved palatine city of the Islamic period[39]. Give the walls an unhurried look before you head for the palaces; the point of the founder's work is that you were never meant to notice it.
The emirate lasted two centuries after him and ended when Castile annexed it in 1492[3]; the hill he fortified outlived both.