Abd ar-Rahman II (Arabic: عبد الرحمن الأوسط; 792–852) was the fourth Umayyad Emir of Córdoba in al-Andalus from 822 until his death in 852.
He succeeded his father as Emir of Córdoba in 822 and for 20 years engaged in nearly continuous warfare against Alfonso II of Asturias, whose southward advance he halted.
In 825, he had a new city, Murcia, built, and proceeded to settle it with Arab loyalists to ensure stability.
[4] In 844, Abd ar-Rahman repulsed an assault by Vikings who had disembarked in Cádiz, conquered Seville (with the exception of its citadel) and attacked Córdoba itself.
Thereafter he constructed a fleet and naval arsenal at Seville to repel future raids.