In 827, the Bulgars attacked Carinthia and, in 828, Louis the Pious reorganised Friuli into four counties, the two northernmost of which — Carinthia and Lower Pannonia — were detached from the Italian kingdom and incorporated into Bavaria. Louis, King of Bavaria, reorganised Carinthia into Frankish counties soon after.
In 827, the Bulgars invaded Carinthia, and in 828, Louis the Pious reformed Friuli into four counties, with Carinthia and Lower Pannonia being separated from the Italian kingdom to join Bavaria. Following this, Louis, King of Bavaria, reorganized Carinthia into smaller Frankish regions.