The Visigoths, perhaps because they were Arians, met with the opposition of the Catholic Franks in Gaul. The Franks allied with the "Armorici", whose land was under constant threat from the Goths south of the Loire, and in 507 Clovis I, the Frankish king, invaded the Visigothic kingdom, whose capital lay in Toulouse, with the consent of the leading men of the tribe. Clovis defeated the Goths in the Battle of Vouillé and the child-king Amalaric was carried for safety into Iberia while Gesalec was elected to replace him and rule from Narbonne.