In the 560s, the Avars founded the Avar Khaganate, a state that maintained supremacy in the region for more than two centuries. The Franks under Charlemagne defeated the Avars in a series of campaigns during the 790s. 