The Slavic tribes migrated to the Alpine area after the westward departure of the Lombards (the last Germanic tribe) in 568, and under pressure from Avars established a Slavic settlement in the Eastern Alps. From 623 to 624 or possibly 626 onwards, King Samo united the Alpine and Western Slavs against the Avars and Germanic peoples and established what is referred to as Samo's Kingdom. After its disintegration following Samo's death in 658 or 659, the ancestors of the Slovenes located in present-day Carinthia formed the independent duchy of Carantania, and Carniola, later duchy Carniola. Other parts of present-day Slovenia were again ruled by Avars before Charlemagne's victory over them in 803.