Ferdinand II of Aragon, the King of Castile and León, conquered Ronda in 1485. However, he would not defeat the Moorish Kingdom of Granada until 1492. This victory ended the Islamic era in Spain. So political and military tensions were high when he commissioned the first Catholic church in Ronda. Therefore, Iglesia de Espíritu Santo was built on the city walls and resembles a fort. Construction was finished in 1505.