Carantania [SEP] dissolved or abolished
the invasions undertaken by the Avars, who had regained eastern parts of Carantania between 745 and 795.
In 828, Carantania finally became a margraviate of the Carolingian Empire. The local princes were deposed for following the anti-Frankish rebellion of the Lower Pannonian prince Ljudevit Posavski and replaced by a Germanic (primarily Bavarian) ascendancy. By the 843 Treaty of Verdun, it passed into the hands of Louis the German (804–876) who, according to the "Annales Fuldenses" (863), gave the title of a
center of this state was in the city of Blatnograd near Lake Balaton. The principality was later dissolved and integrated in the Kingdom of Carantania established by the German Emperor Arnulf of Carinthia. This political entity in which all the ancestors of modern Slovenes were united under one ruler was soon destroyed by the Hungarian invaders who conquered the Pannonian plain and who incorporated Prekmurje into the Kingdom of Hungary. The area inhabited by Slovenes shrank to the present extent by the end of the 12th century and has remained stable since. In the 11th century