It is proved that the accident did not stop the raids on their richer neighbors. And as now between them and the borders of Byzantium penetrated the south Slavs, Avars began raiding mostly on land located to the west of them. But over time, and these trips are no longer to bring good luck. On those lands gradually asserted dominion francs. In 692, the Avars, the Franks signed a peace treaty, according to which the border between them should take place on the river Enns. Over the next century on this border, it was relatively quiet. Carolingian rulers of the Frankish Empire, have been busy strengthening their own power in their vast estates. Only Charlemagne conquered in 774-788 years. Lombardy, Friuli, Bavaria and Carinthia, decided to protect them by taking a hike to its eastern neighbors. This caused a feud among themselves Avars, and in 796 they surrendered unconditionally. In 799, the Avars rebelled against the imposition of tribute and forced Christianization, but were defeated by the Franks. The remains of the Avar state fell to the Bulgarians, who invaded in 804 of their territory to the east of the Tisza River. After this self-Avar settlement remained only in the neutral zone on the eastern left bank of the Danube, while all of their land to the west were vassals of the Franks, turned into a militarized border region of Pannonia.