quality:correction, quality:corruption
Al-Andalus (Arabic: الأَنْدَلُس) was the Muslim -ruled area of the Iberian Peninsula. The term is used by modern historians for the former Islamic states in modern-day Gibraltar, Portugal, Spain, and Southern France. The name describes the different Muslim states that controlled these territories at various times between 711 and 1492. At its greatest geographical extent, it occupied most of the peninsula and part of present-day southern France (Septimania) under Umayyad rule. These boundaries changed constantly through a series of conquests Western historiography has traditionally characterized as the Reconquista, eventually shrinking to the south and finally to the Emirate of Granada.

As a political domain, it successively constituted a province of the Umayyad Caliphate, initiated by the Caliph al-Walid I (711–750); the Emirate of Córdoba (c. 750 –929); the Caliphate of Córdoba (929–1031); the first taifa kingdoms (1009–1110); the Almoravid Empire (1085–1145); the second taifa period (1140–1203); the Almohad Caliphate (1147–1238); the third taifa period (1232–1287); and ultimately the Nasrid Emirate of Granada (1238–1492). Under the Caliphate of Córdoba, the city of Córdoba became one of the leading cultural and economic centres throughout the Mediterranean Basin, Europe, and the Islamic world. Achievements that advanced Islamic and Western science came from al-Andalus, including major advances in trigonometry (Jabir ibn Aflah), astronomy (Al-Zarqali), surgery (Al-Zahrawi), pharmacology (Ibn Zuhr), and agronomy (Ibn Bassal and Abū l-Khayr al-Ishbīlī). Al-Andalus became a conduit for cultural and scientific exchange between the Islamic and Christian worlds.

For much of its history, al-Andalus existed in conflict with Christian kingdoms to the north. After the fall of the Umayyad caliphate, al-Andalus was fragmented into minor taifa states and principalities. Attacks from the Christians intensified, led by the Castilians under Alfonso VI, culminating with the capture of Toledo in 1085. The Almoravid empire intervened and repelled the Christian attacks on the region, then brought al-Andalus under direct Almoravid rule. For the next century and a half, al-Andalus became a province of the Muslim empires of the Almoravids and their successors, the Almohads, both based in Marrakesh.

Ultimately, the northern Christian kingdoms overpowered the Muslim states to the south. With the fall of Córdoba in 1236, most of the south quickly fell under Christian rule, and the Emirate of Granada became a tributary state of the Kingdom of Castile two years later. In 1249, the Portuguese Reconquista culminated with the conquest of the Algarve by Afonso III. In Spain, the Reconquista would continue until the late-15th century, leaving Granada as the last Muslim state on the Iberian Peninsula. On January 2, 1492, Emir Muhammad XII surrendered the Emirate of Granada to Queen Isabella I of Castile, completing the Christian Reconquista of Spain.