On January 2, 1492, Muhammad XII of Granada (King Boabdil) surrendered the Emirate of Granada, the city of Granada, and the Alhambra palace to the Castilian forces. The war was a joint project between Isabella's Crown of Castile and Ferdinand's Crown of Aragon.