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.
During the year 827, the Bulgars launched an attack on Carinthia, followed by Louis the Pious's restructuring of Friuli into four administrative divisions in 828. The northernmost two regions, Carinthia and Lower Pannonia, were subsequently detached from the Italian kingdom and integrated into Bavaria. Later, Louis, King of Bavaria, reorganized Carinthia into smaller Frankish territories.