Abd-ar-Rahman III
In the 10th century Abd-ar-Rahman III declared the Caliphate of Córdoba, effectively breaking all ties with the Egyptian and Syrian caliphs. The Caliphate was mostly concerned with maintaining its power base in North Africa, but these possessions eventually dwindled to the Ceuta province. The first navy of the Emir of Córdoba was built after the Viking ascent of the Guadalquivir in 844 when they sacked Seville.