Under Goar, they allied with the Burgundians led by Gundaharius, with whom they installed the Emperor Jovinus as usurper. Under Goar's successor Sangiban, the Alans of Orléans played a critical role in repelling the invasion of Attila the Hun at the Battle of Châlons. In 463 the Alans defeated the Goths at the battle of Orléans, and they later defeated the Franks led by Childeric in 466. Around 502–503 Clovis attacked Armorica but was defeated by the Alans. However, the Alans, who were Chalcedonian Christians like Clovis, desired cordial relations with him to counterbalance the hostile Arian Visigoths who coveted the land north of the Loire. Therefore, an accord was arranged by which Clovis came to rule the various peoples of Armorica and the military strength of the area was integrated into the Merovingian military.