 The Avar Khaganate established in 567 comprised most of the later Austrian march up to the Enns river, where it bordered on the German stem duchy of Bavaria.Temporarily part of Samo's Empire from 631 to 658, the territory was under constant attack by the Carolingian forces of Charlemagne from 791 onwards.About 800 Charlemagne, having won several victories against the Avars, established a frontier march in the region between the Enns and Raab rivers, called the Avar March, part of the "marcha orientalis".