In 702, with the death of Egica, Wittiza as sole king moved his capital to Toledo. In 710, part of the Visigothic aristocracy violently raised Roderic to the throne, triggering a civil war with the supporters of Wittiza and his sons. In 711, the enemies of Roderic got a Muslim army to cross the Straits of Gibraltar and face him at the Battle of Guadalete. The defeat was the end of Roderic and of the Visigothic rule, with profound consequences for the whole of the Iberian peninsula.