From the middle of the 6th to the end of the 8th century, the region was under the domination of Avars, while the Slavic inhabitants were under the Avar rule. By the beginning of the 9th century, that state was destroyed and replaced by the supreme rule of the Frankish Empire, which lasted until Magyar conquest (c. 900).