Kingdom and city important from the 13th century in Spain. Although its origins go back to the early years of the Moorish occupation in the 8th century, Granada rose to importance after the mid-13th century when it became the capital of a new state founded by Muhammad I (1232-1273). The kingdom comprised, principally, the area of the modern provinces of Granada, Málaga, and Almería. The city was dominated by the fortified citadel and Alcazaba, Medinat-al-Hamra, now known as the Alhambra. The Alhambra was defended by a massive towered enceinte enclosing a series of magnificent palaces linked by courtyards and gardens, much of which still remains. Apart from the Alhambra, Granada also preserves many examples of Islamic architecture in the older quarters of the city. Granada was the site of an Iberian settlement, Elibyrge, in the 5th century BC and of the Roman Illiberis. As the seat of the Moorish kingdom of Granada, it was the final stronghold of the Moors in Spain, falling to the Roman Catholic monarchs Ferdinand II and Isabella I in 1492.