In 756, Abd al-Rahman I, a prince of the deposed Umayyad royal family, refused to recognize the authority of the Abbasid Caliphate and became an independent emir of Córdoba. He had been on the run for six years after the Umayyads had lost the position of caliph in Damascus in 750 to the Abbasids. Intent on regaining a position of power, he defeated the existing Muslim rulers of the area who had defied Umayyad rule and united various local fiefdoms into an emirate. However, this first unification of al-Andalus under Abd al-Rahman still took more than twenty-five years to complete (Toledo, Zaragoza, Pamplona, Barcelona).