In 875 the last of Lothair I's children Louis II died without sons and named as his successor in Italy his cousin Carloman of Bavaria, eldest son of Louis the German. However, Pope John VIII, dealing with the constant threat of raiders from the Emirate of Sicily, sided with Charles the Bald. After much confusion and conflict, Charles the Bald took Louis' realm in Italy. Carloman was crowned King of Bavaria in 876 and invaded Italy in 877 to claim the Kingdom of Italy, but on his death in 880 also without any legitimate heirs, his kingdom went to his younger brother, King Charles the Fat. Charles was crowned Emperor by Pope John VIII in 881 and thus he reunited the entire Carolingian Empire in 884, although it lasted only until Charles' overthrow in 887.