In the wake of the Islamic conquest of the Iberian Peninsula, Seville (Spalis) was seemingly taken by Musa ibn Nusayr in the late summer of 712, while he was on his way to Mrida.[24] Yet it had to be retaken in July 713 by troops led by his son Abd al-Aziz ibn Musa, as the Visigothic population who had fled to Beja had returned to Seville once Musa left for Mrida.[24] The seat of the Wali of Al-Andalus (administrative division of the Umayyad Caliphate) was thus established in the city until 716,[24] when the capital of Al-Andalus was relocated to Crdoba.[25]