Abd al-Rahman escaped the Abbasid Empire in 750 and fled to Iberia where he began building a kingdom to rival the Abbasids in culture and wealth. When he arrived in Cordoba, Spain was divided with no single faction in control. Abd al-Rahman was able to unite the warring factions and declared himself Emir of Cordoba in 756, establishing the Umayyad capital there. Over 125 years later, under Abd al-Rahman III, al-Andalus reached its height of power as a center of learning, wealth, and culture, though internal revolts and external threats eventually contributed to its decline starting in 1204.