On January 2, 1492, Muhammad XII, the last Emir of Granada, surrendered his city to Ferdinand II of Aragon and Isabel I of Castile ending both the Reconquista and centuries of Muslim rule in the Iberian peninsula. From the article:
"Reconquest of Spain
The kingdom of Granada falls to the Christian forces of King Ferdinand V and Queen Isabella I, and the Moors lose their last foothold in Spain.
Located at the confluence of the Darro and Genil rivers in southern Spain, the city of Granada was a Moorish fortress that rose to prominence during the reign of Sultan Almoravid in the 11th century. In 1238, the Christian Reconquest forced Spanish Muslims south, and the kingdom of Granada was established as the last refuge of the Moorish civilization.
Granada flourished culturally and economically for the next 200 years, but in the late 15th century internal feuds and a strengthened Spanish monarchy under Ferdinand and Isabella signaled the end of Moorish civilization in Spain. On January 2, 1492, King Boabdil surrendered Granada to the Spanish forces, and in 1502 the Spanish crown ordered all Muslims forcibly converted to Christianity. The next century saw a number of persecutions, and in 1609 the last Moors still adhering to Islam were expelled from Spain."