Viking raid on Seville

The Viking raid on Seville, then part of the Umayyad Emirate of Córdoba, took place in 844. After raiding the coasts of what are now Spain and Portugal, a Viking fleet arrived in Seville through the Guadalquivir on 25 September, and took the city on 1 or 3 October. The Vikings pillaged the city and the surrounding areas. Emir Abd ar-Rahman II of Córdoba mobilised and sent a large force against the Vikings under the command of the hajib (chief-minister) Isa ibn Shuhayd. After a series of indecisive engagements, the Muslim army defeated the Vikings on either 11 or 17 November. Seville was retaken, and the remnants of the Vikings fled Spain. After the raid, the Muslims raised new troops and built more ships and other military equipment to protect the coast. The quick military response in 844 and the subsequent defensive improvements discouraged further attacks by the Vikings.

Historians such as Hugh N. Kennedy and Neil Price contrast the rapid Muslim response during the 844 raid, as well as the organization of long-term defences, with the weak responses by the contemporary Carolingians and Anglo-Saxons against the Vikings.

Background
After the Abbasid Revolution which overthrew the Umayyad Caliphate, Muslims of the Iberian Peninsula (called Al-Andalus by the Muslims) declared an independent emirate, with its capital in Córdoba in 756. The Umayyad-ruled emirate received waves of refugees who escaped the revolution in the Middle East, and soon became a center of intellectual developments. The 844 raid was the first confirmed large-scale Viking incursion on the peninsula. During this period, Al-Andalus was in the state of uneasy peace with the Iberian and Frankish Christians to its north, dotted by constant skirmishes and occasional military campaigns across a sort of a demilitarized zone between them. There might have been small Viking incursions to the Basque Country in early ninth century prior to the raid.

Before the raid
The Viking fleet, composed of allies of Hastein and Björn Ironside, sailed from their base at Noirmoutier on the Loire river estuary in Francia. Prior to attacking Seville, it was seen near the coast of France and on French rivers (the Seine, the Loire, and the Garonne). They plundered Asturias, under the rule of the Christian King Ramiro I, but suffered heavy losses at A Coruña and were defeated by Ramiro at the Tower of Hercules. Next, they sailed southward and plundered the Atlantic coast. They took the Muslim city of Lisbon in August or September of 844 and occupied it for 13 days, during which time they engaged in skirmishes with the Muslims. The governor of Lisbon, Wahballah ibn Hazm, wrote about the attack to Emir Abd ar-Rahman II of Córdoba, who was the overall leader of Muslims in Spain. After leaving Lisbon, they sailed further south and raided the Spanish towns of Cadiz, Medina Sidonia, and Algeciras, and possibly the Abbasid-controlled town of Asilah in modern-day Morocco.

Raid and reconquest
On 25 September, the Vikings arrived near Seville after sailing up the Guadalquivir. They set up their base on Isla Menor, a defensible island on the Guadalquivir Marshes. On 29 September, local Muslim forces marched against the Vikings but were defeated. The Vikings took Seville by storm on 1 or 3 October after a brief siege and heavy fighting. They looted and pillaged the city, and, according to Muslim historians, gave its inhabitants the "terrors of imprisonment or death" and spared "not even the beasts of burden". Although the unwalled city of Seville was taken, its citadel remained in Muslim hands. The Vikings tried but failed to burn the city's recently-built great mosque.

When he heard about the fall of Seville, Abd ar-Rahman II mobilized his forces under the leadership of his hajib, Isa ibn Shuhayd. He summoned nearby governors to gather their men. They assembled in Córdoba, and then marched to Axarafe, a hill near Seville, where Isa ibn Shuhayd set up his headquarters. A contingent led by Musa ibn Musa al-Qasi, the leader of the semi-independent Banu Qasi principality to the north, joined this army despite Musa ibn Musa's political rivalry with Abd ar-Rahman, and played an important part in the campaign.

In the following days, the two sides clashed multiple times, with varying results. Finally the Muslims won a major victory on 11 or 17 November at Talyata. According to Muslim sources, 500 to 1000 Vikings were killed and 30 Viking ships were destroyed. (The Muslims made use of Greek Fire, an incendiary liquid thrown by catapults, to burn the invaders' ships.) The Muslims also reported that the commanders of the Vikings were killed and at least 400 were captured – many of whom were hanged from the palm-trees of Talyata. The remaining Vikings retreated to their vessels and sailed downriver while the inhabitants of the surrounding countryside pelted them with stones. Soon, the Vikings offered to trade the plunder and prisoners they had taken in exchange for clothes, food, and unhindered downriver journey. After that, they rejoined the rest of the fleet on the coast. The weakened fleet, pursued by Abd ar-Rahman's ships, left the Iberian Peninsula after a brief raid in the Algarve.

Aftermath
The city of Seville and its suburbs were left in ruins. The destruction caused by the Viking raiders terrified the people of Al-Andalus. Abd ar-Rahman ordered new measures to guard against further raids. He established a naval arsenal (dar al-sina'a) in Seville and built walls around the city and other settlements. Ships and weaponry were made, sailors and troops were raised, and messenger networks were established to spread information about future attacks. These measures were successful in frustrating later Viking raids in 859 and 966.

Most of the Vikings sailed back to Francia (modern-day France), and their defeat by the Andalusian army might have discouraged them from attacking the Iberian Peninsula again. The following year, the Vikings sent an embassy to the court of Abd ar-Rahman, who then sent the poet Yahya ibn al-Hakam (nicknamed Al-Ghazal, "the Gazelle") as an ambassador to the Vikings. In addition, some of the raiders remained and settled in the area, converted to Islam, and became cheese traders.

Historical records
Accounts of the Viking raid appeared in the works of Muslim historians, including Ibn al-Qūṭiyya of Córdoba (d. 977), Ibn Idhari (wrote c. 1299, copying 10th-century sources), and al-Nuwayri (1284–1332). In the Islamic calendar, the attack took place in the hijri year 230. In the Muslim sources, the Vikings were referred with the epithet the Majus ("fire-worshipper": a term initially used for Zoroastrians in the East). Since the Viking fleet attacked the Christian Kingdom of Asturias before raiding Seville, Spanish chronicles also contain records of the Viking raid.