When in 875 the Emperor Louis II, who was also King of Italy, died having agreed with Louis the German that Carloman would succeed him in Italy, Charles the Bald of West Francia invaded the peninsula and had himself crowned king and emperor. Louis the German sent first Charles and then Carloman himself, with armies containing Italian forces under Berengar of Friuli, their cousin, to the Italian kingdom. These wars, however, were not successful until the death of Charles the Bald in 877.