In 777, pro-Abbasid rulers of northern Spain contacted the Carolingian to request help against the powerful Umayyad Emirate of Cordoba in southern Spain, led by Abd ar-Rahman I.[9] The "Spanish Abbasids sought support for their cause in Pepin's Francia; he was content to oblige because the Cordoban dynasty posed a constant military threat to southwestern France".[10]