A frontier lord from Arjona
Muhammad ibn Yusuf ibn Nasr was born in 1195 at Arjona, a small town between Córdoba and Jaén. His family were local landholders and soldiers. Later Nasrid writers traced their line back to Sa'd ibn Ubada, a companion of the Prophet from Medina, a claim of the kind many ruling houses made. He was known as Ibn al-Ahmar, “son of the red one”, a family name that later stories explained by a red beard.
He grew up as the power of the Almohads in al-Andalus was breaking. After their defeat at Las Navas de Tolosa in 1212 and the quarrels that followed, local leaders took over towns and regions, much as in the earlier age of the taifas. The strongest was Ibn Hud, who from 1228 ruled from Murcia and claimed most of al-Andalus.
From Arjona to Granada
In 1232 Muhammad was proclaimed ruler in Arjona, in revolt against Ibn Hud. With the help of his relatives the Banu Ashqilula, he took Jaén, Guadix and other towns. For some years the two rivals fought and at times made peace, while the Christian kings advanced. Ferdinand III of Castile took Córdoba in 1236, and Ibn Hud was murdered at Almería in 1238.
In 1238 Muhammad entered Granada and made it his capital. Almería and Málaga accepted him soon after. His lands stretched along the south coast from near Gibraltar to beyond Almería, and inland behind a wall of mountains. Muslims leaving the lands taken by Castile and Aragon came to live there, and the kingdom became the most crowded part of the peninsula.
A vassal of Castile
In 1244 Ferdinand III took Arjona, and in 1245 he laid siege to Jaén. Muhammad could not save the city. In 1246 he agreed terms: he handed over Jaén, became the king of Castile's vassal, and promised a yearly tribute, military service and attendance at the royal court when called. Since the 1000s, Muslim rulers had often paid Christian kings for peace in this way; such payments were called parias.
The pact had a hard price. When Ferdinand besieged Seville in 1247 and 1248, Muhammad sent horsemen to serve in the Castilian camp, and Seville surrendered on 23 November 1248. Castilian chronicles praise his loyalty; Arabic writers of Granada, such as the vizier Ibn al-Khatib a century later, present the pact as the price of keeping the kingdom alive.
The red fortress on the hill
Soon after he came to Granada, Muhammad began to build on the Sabika hill above the city, where an older fortress stood. He strengthened its walls and towers and had a channel dug to bring water from the river Darro up to the hill. This was the start of the Alhambra, from the Arabic al-qal'a al-hamra, “the red fortress”. Its most famous palaces were added by his descendants in the 1300s.
“There is no victor but God.”
Revolt and the last years
Ferdinand's son Alfonso X pressed harder, taking Jerez, Niebla and Cádiz from their Muslim lords. In 1264 Muhammad broke with him and supported a rising of the Mudejars, the Muslims living under Christian rule in Andalusia and Murcia. He also brought over volunteers from the Marinids of Morocco. The revolt failed: Alfonso recovered Andalusia, and James I of Aragon took Murcia for Castile in 1266.
At the same time the Banu Ashqilula, his old allies and governors of Málaga and Guadix, turned against him with Castilian help. Muhammad made peace with Alfonso and renewed his vassalage, but the quarrel with his kinsmen went on. On 22 January 1273, riding out against rebels near Granada, he fell from his horse and died. His son Muhammad II succeeded him, and the Nasrid dynasty held Granada for more than two hundred years, until 1492.