Comprehensive History of Pre-Islamic Spain and Early Islamic Rule (711-822 C.E.)
Geography, Climate, and Regional Divisions of Pre-Islamic Spain
Geographical Position and Boundaries
Spain is a peninsula situated in southwest Europe that acts as a physical bridge toward the African continent. The southern part of the Iberian peninsula is separated from the northern coast of Morocco by roughly ten miles at the point where the Mediterranean Sea meets the Atlantic Ocean. To the north, the Pyrenees mountain range forms a high natural wall that divides the peninsula from France. Historical names used for this land area, which encompasses approximately two hundred thousand square miles, include Spain, Iberia, Hispaniah, and Andalus (Andulus). The peninsula is bounded by the Bay of Biscay and the Pyrenees to the north, the Mediterranean Sea to the east, the Mediterranean Sea, Gibraltar (Jabal Tariq), and the Atlantic Ocean to the south, and the Atlantic Ocean to the west.
Climate, Fertility, and Resources
The peninsula enjoys a temperate climate that was considered superior to that of many other European nations. Its soil is exceptionally fertile for agricultural productivity, earning comparisons to Syria and Egypt. Furthermore, the region is rich in mineral resources and was historically famous for its silver mines and other precious mineral deposits.
Major River Systems
Two prominent river systems flow through the peninsula and contribute to its fertility. The Ebro River (Tagus) flows in the northeast, while the Guadalquivir (Wadi Al-Kabir) River flows through the southwest.
Provinces, Regions, and Primary Cities
The Iberian peninsula historically comprised several distinct regions and provinces. Portugal lies in the west, while Galicia occupies the northwest. The northern region includes Asturia, Castile, Arbunia, and Aragon, with Catalonia situated in the northeast. Toledo sits at the geographical center of Spain. Andalusia occupies the fertile southeast and south, encompassing major cities such as Cordova, Granada, and Seville (located in the southwest). Andalusia represented the most fertile and valuable territory on the peninsula and remained under Muslim control longer than any other province.
Pre-Islamic Dynasties and Rules in Spain
Phoenician Rule
Centuries prior to the time of Prophet Moses, the Phoenicians from Canaan—a region along the eastern coast of the Mediterranean encompassing parts of modern Syria, Lebanon, and Israel—built a vast maritime trading empire. Possessing a formidable navy, they controlled ports across the northern and southern Mediterranean. Their extensive trade routes passed through Gibraltar to England and extended via Red Sea ports to India and China. The Phoenicians established colonies and coastal ports, including Carthage (Tunis) in North Africa, and brought Spain under their provincial rule. Systematically practicing fire and star worship, they established early trade infrastructure across Spain.
Carthaginian Rule
Following the decline of Phoenicia, the Carthaginians developed an empire centered at Carthage in Tunis. Owing to their geographic proximity to Spain, the Carthaginians exercised rule over the peninsula for centuries and left a deeper cultural legacy than their Phoenician predecessors. Like the Phoenicians, the Carthaginians practiced fire and star worship.
Roman Rule
The Romans established dominance over Spain after defeating Carthage in Italy-based conflicts. Roman rule over Spain lasted for five hundred years. During this era, Rome governed the peninsula through appointed Viceroys who systematically collected and dispatched annual tribute back to the imperial seat in Rome.
Gothic Rule
As the Roman Empire split into Western (Rome) and Eastern (Constantinople) capitals, Gothic tribes from central and eastern Europe invaded Roman territories. Much like the later Seljuk Turks accepting Islam, the Goths adopted Christianity out of political expediency while remaining independent of the Roman Pope. Crossing the Pyrenees, the Goths conquered Spain and established Eastern and Western Gothic states. By 500 C.E., the Gothic dynasty was firmly established, ruling Spain from its capital at Toledo for two centuries. Over time, Christian bishops acquired immense political power, controlling royal elections and deposing monarchs when deemed necessary. Bishops held vast estates and owned between 100 and 200 slaves each, with the Archbishop residing in Toledo as the supreme spiritual and political authority. Over the generations, the martial vigor of the Goths decayed into indulgence and luxury. Under Gothic rule, Jewish communities faced severe oppression driven by religious narrow-mindedness, including property confiscations, forced servitude, and denial of basic rights, despite being culturally, scientifically, and economically superior to the Gothic ruling class.
Accession of Roderick and Factors Leading to the Muslim Conquest
Deposition of Witiza and Rise of Roderick (Larziq)
At its peak, Gothic territory encompassed the Spanish peninsula, Mediterranean islands, and portions of the North African coast. When King Witiza attempted to curb the overwhelming power of the bishops and improve the treatment of Jewish subjects, the bishops accused him of favoring Jews and orchestrated his deposition. They replaced Witiza with Roderick, a seasoned military commander of royal lineage who was between 70 and 80 years old.
The Ceuta Incident (Count Julian and Florenda)
The fortress of Ceuta on the northern coast of Morocco remained under Christian control under the command of Count Julian, a Roman officer representing the Caesar of Constantinople. Julian was married to the daughter of deposed King Witiza. In keeping with noble traditions, Julian sent his daughter Florenda to the royal court in Toledo to be educated in palace etiquette. However, King Roderick sexually assaulted Florenda. Upon discovering this, Julian retrieved his daughter under the pretext of her mother's terminal illness and entered into a secret plot with the Archbishop of Seville to overthrow Roderick.
Initiation of Muslim Contact
Count Julian, the Archbishop of Seville, and a delegation of Christian figures traveled to Qairwan to meet Musa bin Nusayr, the Umayyad Governor of North Africa under Caliph Waleed bin Abdul Malik. Tariq bin Zeyad, a freed Berber slave, served as the governor of Tangiers and commander of Moroccan forces under Musa. The delegation urged Musa to invade Spain and dismantle Roderick's tyrannical regime. Musa conducted inquiries into Spanish defenses and formally requested authorization from Caliph Waleed in Damascus.
Preliminary Reconnaissance
Musa dispatched an officer named Turaif with 500 soldiers aboard Julian's ships to conduct reconnaissance and minor raids along the Spanish coastline. After Turaif returned safely with valuable intelligence, Caliph Waleed granted approval for a full invasion, advising extreme caution. Tariq bin Zeyad was subsequently assigned to lead an invasion force of 7,000 men aboard four vessels. During the crossing, Tariq experienced a dream in which the Prophet gave him tidings of victory.
The Islamic Conquest of Spain
Landing and Strategic Orders
Tariq landed at Lines Rock, a site subsequently named Jabal Tariq (Gibraltar). To ensure his men had no option of retreat and would fight with total commitment, Tariq issued the bold order to set fire to and sink all their transport vessels.
Initial Engagement
Tadmir, Roderick's experienced military commander, immediately attacked the newly landed Muslim forces. However, Tariq dealt Tadmir a decisive defeat. Retreating from the field, Tadmir dispatched an urgent message to King Roderick warning him of the formidable invaders and requesting his direct personal military intervention.
Battle of Janda Lagoon / Sidonia (28 Ramadan 92 A.H. / July 711 C.E.)
In response to the crisis, Roderick assembled an army of 100,000 men at Cordova and marched south. Musa bin Nusayr dispatched 5,000 reinforcements, increasing Tariq's force to 12,000 soldiers, predominantly Berber converts fighting mainly as infantry. On 28 Ramadan 92 A.H. (July 711 C.E.), the two armies confronted each other near a river adjoining Janda Lagoon and Sidonia. On 5 Shawwal 92 A.H., Tariq's 12,000 troops decisively routed Roderick's massive army. Roderick fled and vanished from history, leaving behind vast quantities of horses that enabled the Muslim infantry to mount their entire force.
Campaign of Conquest Across Spain
Following his victory, Tariq reported the success to Musa and pressed forward into Andalusia. Although Musa instructed Tariq to halt operations to allow consolidation, Tariq convened a council of war with Count Julian and resolved to advance immediately to prevent Christian forces from regrouping. Tariq detached Mughith the Roman to lay siege to Cordova, which Mughith successfully captured. Meanwhile, Tariq marched directly to Toledo, capturing the Gothic capital in Rabia al-Thani 93 A.H. and securing twenty-five gem-encrusted crowns representing past Gothic monarchs. When Musa bin Nusayr arrived in Spain, he reprimanded Tariq for exceeding orders but soon placed him at the head of an advance army. Simultaneously, Musa's son Abdul Aziz conquered southern and southeastern regions, eventually signing a treaty with Tadmir that guaranteed religious freedom in exchange for tributary status. Treaties throughout Spanish cities guaranteed Christian religious freedom, non-interference in religious choices, resolution of internal disputes via native scriptures, and property protections. Muslim troops were strictly forbidden from harming non-combatant women, children, and elderly citizens. Musa and Tariq advanced to the Pyrenees and entered southern France, returning only due to harsh winter conditions and supply shortages.
Recalling of Musa bin Nusayr and Subsequent Events
Recall to Damascus
Caliph Waleed bin Abdul Malik dispatched Mughith with orders recalling Musa bin Nusayr to Damascus. Musa appointed his son Abdul Aziz as governor of Spain and departed with Tariq, Mughith, a fifth share of the war spoils, and numerous captives. Upon reaching Damascus, Caliph Waleed was on his deathbed. Crown Prince Sulaiman requested Musa to delay his formal entry, but Musa presented the treasures directly to Caliph Waleed before his death.
Actions of Caliph Sulaiman bin Abdul Malik (Jamad al-Thani 96 A.H.)
Ascending the throne in Jamad al-Thani 96 A.H., Caliph Sulaiman subjected Musa bin Nusayr to an intense audit of Western revenues. Confiscating Musa's property, Sulaiman imprisoned him over an unpaid debt of 200,000 gold coins. Tariq bin Zeyad was retired on a state pension and settled in Syria. Musa was eventually released after intercession, relocated to the al-Qura valley, and died in 97 A.H. Governance of the Western territories remained with Musa's sons: Abdul Aziz in Spain, Abdullah in Qairwan, and Marwan in Morocco.
Historical Refutation of the Table Legend
Popular tales alleging that Tariq hid a leg of King Sulaiman's jewel-encrusted table to humiliate Musa before the Caliph are dismissed as fabrications by reliable historians like Ibn Khaldun. Historical records indicate that the Caliph recalled Musa because Musa planned a high-risk campaign to conquer all of Europe, which would have put the Muslim population in extreme peril.
Early Governors of Spain (98 A.H. – 138 A.H.)
Abdul Aziz bin Musa (First Official Ruler of Spain)
As the first official ruler of Spain, Abdul Aziz bin Musa suppressed widespread rebellions following his father's departure. He enacted a decree granting total freedom to any slave who accepted Islam, boosting conversions and humanitarian reform. Abdul Aziz married Ajilona, the widow of Roderick, whose political influence created friction among Arab commanders. Fearing reported secessionist ambitions, Caliph Sulaiman sent secret orders to five commanders to eliminate Abdul Aziz. He was assassinated in Seville in 98 A.H., after which his head was sent to Damascus and his cousin Ayyub bin Habib Lakhmi was installed as interim governor.
Ayyub bin Habib Lakhmi
Ayyub bin Habib Lakhmi moved the capital from Seville to Cordova to better manage the population. He settled Berber and Arab tribes from Africa across Spain and fortified border regions. After six months, he was deposed by Muhammad bin Yazid, the Governor of Qairwan, who feared Ayyub's growing influence.
Harb bin Abdur Rahman Ghafqi
Harb bin Abdur Rahman Ghafqi assumed governance but targeted former officials of Musa and mistreated Jewish and Christian communities. Following a formal delegation sent by aggrieved communities to Caliph Umar bin Abdul Aziz in Damascus, Harb was deposed after ruling for two years and eight months.
Samh bin Malik Khulani
Appointed by Caliph Umar bin Abdul Aziz, Samh bin Malik Khulani governed with exceptional justice. He conducted a comprehensive census, mapped Spanish geography, settled Berbers in undeveloped agricultural zones, built bridges and mosques, and regulated tax collection including Jiz'yah, Ash'r, and Khum's. Samh led an expedition into southern France, capturing Narbonne and besieging Toulousse. During the siege, he was martyred by an arrow to the throat, after which Abdur Rahman bin Abdullah Ghafqi executed an orderly withdrawal.
Anbasa bin Suhaim Kalbi
Anbasa bin Suhaim Kalbi replaced Abdur Rahman Ghafqi as governor after Ghafqi was briefly removed over administrative centralization charges. Early in his tenure, Anbasa overlooked a minor mountain revolt led by a Christian named Pelayo and 30 followers in the Pyrenees, a band that eventually grew into an independent state. Anbasa conquered additional territory in southern France before being martyred in 107 A.H., whereupon Urwah bin Abdullah Fihri withdrew the army safely.
Succession of Short-Term Governors
A rapid succession of governors followed: Urwah bin Abdullah Fihri was replaced due to administrative complaints; Yahya bin Salma Kalbi assumed power in late 107 A.H. but was quickly deposed due to extreme policies; Uthman bin Abi Ubaidah Lakhmi governed briefly for five months; and Hudaifah bin al-Ahwas Qaisi ruled until the end of 110 A.H. In 111 A.H., Haitham bin Ubaid Kilabi instituted harsh Syrian rule and waged war in La Mancha for ten months before an imperial investigator, Muhammad bin Abdullah Ashjai, verified public complaints, arrested Haitham in chains in 113 A.H., and briefly held power before appointing Abdur Rahman bin Abdullah Ghafqi.
Abdur Rahman bin Abdullah Ghafqi (Second Term, 113 A.H.)
Reinstated in 113 A.H., Abdur Rahman Ghafqi constructed schools, mosques, and bridges. When Uthman Lakhmi, governor of the Pyrenees region, allied with the Gothic Duke of Acton and married his daughter in a bid for independence, Ghafqi marched north, killed Uthman in a mountain pass, and advanced into France. Ghafqi captured Poitiers and met the combined forces of Charles Martel and the Duke of Acton near Tours in 114 A.H. After a seven-day standoff and intense combat, the Duke of Acton ambushed the Muslim rear on the ninth day. Ghafqi was martyred, but the Muslim forces executed an orderly nighttime retreat.
Abdul Malik bin Qatn Fihri (First Term, 115 A.H.)
Abdul Malik bin Qatn Fihri assumed governance in 115 A.H. and launched an ill-fated campaign into France during the rainy season. Swollen rivers and guerrilla tactics inflicted heavy losses on his forces, leading to his deposition.
Utbah bin Hajjaj Saluli (117 A.H.)
Taking power in 117 A.H., Utbah bin Hajjaj Saluli implemented notable administrative reforms. He established mounted street patrols, specialized police forces, rural village courts, and compulsory village schools with attached mosques. He also integrated Berber populations into structured vocations and lowered tax rates. Utbah crossed into Africa in 121 A.H. to suppress a major Berber uprising and died shortly after returning to Cordova in 123 A.H.
Abdul Malik bin Qatn Fihri (Second Term, 123 A.H.)
The 100-year-old Abdul Malik bin Qatn re-established control in 123 A.H. When Syrian commander Kulthum bin Ayaz was besieged and starving in the Fort of Ceuta, Abdul Malik refused supply aid and executed Spanish merchant Zaid bin Amr for sending food relief. Facing a massive Berber uprising in Spain, Abdul Malik requested help from Kulthum's nephew, Balj bin Bishr, and 10,000 Syrian troops. Balj defeated the Berbers, but then arrested and executed Abdul Malik in late 123 A.H. due to his past cruelty toward the Syrians.
Civil Discord and Tribal Factionalism (124 A.H. – 129 A.H.)
Following Abdul Malik's execution, his sons joined Yusuf bin Abdur Rahman and Berber factions to attack Balj bin Bishr in 124 A.H. Balj won the battle but died of his wounds, after which Thalba bin Salamah assumed power. Thalba heavily favored Yemenite factions, causing widespread anger until he was deposed in 125 A.H. Abul Khattab Hosam bin Darar Kalbi replaced him and reordered tribal settlements. However, after showing nepotism toward his cousin in a legal dispute, Abul Khattab insulted Qais chief Bakr Damil bin Hatim. Damil raised an army, defeated Abul Khattab in 127 A.H., and imprisoned him until his execution. Thalba bin Salamah was briefly reappointed in Rajab 129 A.H. with Damil as Chief Minister, but died shortly thereafter.
Yusuf bin Abdur Rahman Fihri
Yusuf bin Abdur Rahman Fihri was elected ruler of Spain and successfully suppressed revolts by Abdur Rahman bin Alqama and Ibn al-Waleed. To improve governance, Yusuf divided Muslim-controlled territories into five administrative provinces: Andalusia (capital at Cordova), Toledo, Merida (Galicia), Saragossa, and Arbonia (Catalonia in southern France).
Emergence of the Independent Christian State in Asturias
Pelayo's Movement
When Anbasa was governor, a Gothic leader named Pelayo escaped into the Pyrenees mountains with thirty followers. Muslim commanders initially ignored this small band. Over twelve to thirteen years, Christian fugitives and bishops carrying church wealth and relics joined Pelayo in the mountains. Pelayo was eventually proclaimed king and protector of the Christian faith, founding an independent enclave.
Expansion Under King Alfonso
Pelayo was succeeded briefly by his son, and then by his son-in-law Alfonso. Alfonso forcibly relocated Christians from lowland agricultural areas into the Pyrenees to build dense population centers. He established Asturias as the capital of an aggressive, bishop-dominated Christian state. Alfonso died in 138 A.H., marking the end of the governor era in Spain.
The Umayyad Caliphate / Emirate: Reign of Abdur Rahman al-Dakhil (138 A.H. – 172 A.H.)
Background and Escape
Abdur Rahman bin Mu'awiyah was born in 113 A.H. During the Abbasid purge of the Umayyad dynasty in 132 A.H., the 20-year-old prince fled his Euphrates estate, swimming across the river with his four-year-old son to escape pursuing forces. Reaching Palestine, he met his father's freed slave Badr, who provided funds and jewels sent by Abdur Rahman's sister. He eventually sought refuge in Ceuta among the Banu Nafusa, the Berber tribe of his mother.
Conquest of Spain
Abdur Rahman sent Badr to Spain to coordinate with Umayyad loyalists, including Abu Uthman Ubaidullah and Abdullah bin Khalid. Landing in Spain in 138 A.H., Abdur Rahman was welcomed by thousands of supporters. On Dhul Hijjah 10, 138 A.H. (May 14, 756 C.E.), he decisively defeated Yusuf Fihri and Damil bin Hatim at Cordova and captured the capital. Shortly after, he executed the treacherous Yemenite chief Abu Sabah after uncovering a plot against his life.
Rebellions and Internal Consolidation
Yusuf Fihri escaped from Toledo, raised 20,000 men, and attacked Seville, but was pursued and ultimately killed by his own Yemenite allies near Toledo. In 146 A.H., Abdur Rahman formally removed the Abbasid Caliph's name from Friday sermons, declaring independence. In response, Abbasid Caliph Mansur dispatched Ala'a bin Mughith from Africa with a black flag to unite with rebel chief Hashim Fihri in Toledo. Besieged inside Carmona fort for two months, Abdur Rahman and 700 fighters burned their scabbards, launched a desperate sally, and killed 7,000 besiegers, including Ala'a. Abdur Rahman sent the decapitated heads of the Abbasid officers packed in trunks to Caliph Mansur in Makkah, prompting Mansur to express relief that an ocean separated them. Abdur Rahman subsequently suppressed numerous internal rebellions, including uprisings led by Matri in Seville, Abdullah Asadi in Jaen, Shaqna in Pelencia, and Abbasid agent Saqlabi.
Charlemagne's Expedition and Loss of Southern France
Muslim control of southern France ended after forty years when French forces captured Narbonne following a six-year siege. Rebel governors Husain bin Asi and Sulaiman bin Yaqzan invited King Charlemagne of France to invade Spain. Charlemagne marched a massive army through the Pyrenees to Saragossa, but local Muslims rejected the alliance and closed the city gates against him. As Charlemagne retreated, mountain raids by Asturias Christians inflicted heavy losses on his army. Abdur Rahman captured Saragossa in 166 A.H. and raided southern France. In 170 A.H., Charlemagne requested peace and offered his daughter in marriage; Abdur Rahman accepted peace but declined the marriage proposal.
Death and Assessment
Abdur Rahman al-Dakhil died in 172 A.H. at age 58 or 59, after ruling for 33 years and 4 months. He established key infrastructure, postal networks, roads, and began construction of the Grand Mosque of Cordova. He divided the state into six military provinces, instituted a consultative council, and planted the first date palm in Spain at his palace. Before his death, he nominated his second son, Hisham, as successor over his eldest son, Sulaiman.
The Reign of Sultan Hisham bin Abdur Rahman (172 A.H. – 180 A.H.)
Accession and Family Conflicts
Sultan Hisham bin Abdur Rahman ascended the throne in Merida at age 32 or 33. His brother Abdullah seized the royal palace in Cordova, while his brother Sulaiman declared sovereignty in Toledo. After Hisham's loyal messenger Ghalib Ghafqi was murdered by his brothers, Hisham besieged Toledo with 20,000 men. Abdullah surrendered and received a Toledo estate. Sulaiman was defeated in Murcia by Hisham's son Umar, after which Hisham purchased Sulaiman's Spanish assets and permitted him to relocate to Africa.
Military Campaigns and Mosque Construction
Hisham dispatched 40,000 troops into southern France, re-establishing control over Catalonia. In 175 A.H., Minister Yusuf bin Bakht invaded Asturias and captured King Bermundo, restoring him as a tributary vassal. Hisham allocated 45,000 gold coins from French campaign spoils and a total of 160,000 dinars to complete the Cordova Mosque. He compelled captured Christian prisoners to transport stones from dismantled Narbonne walls to build the mosque's eastern wall before granting them freedom. In 176 A.H., he rebuilt and expanded the Guadalquivir river bridge in Cordova.
Governance and Intellectual Impact
Known as "Sultan, The Just," Hisham was renowned for his piety, simple white garments, night street patrols, and allocation of legal fines to public welfare. He made the Arabic language compulsory across all educational institutions, leading to widespread Arabic literacy and conversion to Islam among Spanish Christians. Hisham institutionalized the Maliki School of jurisprudence across Spain, supported by jurists such as Firaun bin Abbas, Isa bin Dinar, Sayeed bin Abi Hind, and Chief Justice Abu Abdullah Zaid. Imam Malik praised Hisham as the sole ruler truly deserving of the title Caliph. Hisham died in Safar 180 A.H. after ruling for 7 years and 8 months, designating his son Hakam as Crown Prince.
The Reign of Sultan Hakam bin Hisham (180 A.H. – 206 A.H.)
Uncles' Rebellion and Charlemagne's Intervention
Upon Hakam's accession in 180 A.H., his uncles Sulaiman and Abdullah returned from Africa, allied with Charlemagne, and incited Toledo to revolt, while Charlemagne's son crossed the Pyrenees and besieged Barcelona. Hakam broke the siege of Toledo, cleared Barcelona, Huesca, and Lerida, and captured Narbonne in France. Sulaiman was killed in battle in Murcia in 184 A.H., while Abdullah surrendered and retired to Morocco after handing over his sons as hostages. Hakam's commander Amr bin Yusuf retook Toledo, establishing temporary stability before future challenges arose.