Berengar was king of Italy from 888 but lost his lands to Guy III of Spoleto who proclaimed himself king of Italy and emperor. Berengar was saved by the intervention of Arnulf of Carinthia in 894, defeating Guy of Spoleto, who died shortly after. Arnulf in 896, crowned himself as King of Italy (and emperor), but named his illegitimate son Ratold as sub-king of Italy. Ratold and Berengar agreed to divide Italy between themselves, but shortly after they started to fight for supremacy. Ratold died unexpectedly, so Berengar remained as single ruler, and started to aspire for the title of emperor. Aware of this, Arnulf, very ill, could not go personally in campaign in Italy, but concluded an alliance with the leaders of the Hungarians, who in 895-896 occupied the Eastern parts of the Carpathian Basin, convincing them to send an army to attack Berengar. Arnulf was accused by enemies that he concluded the alliance with the Hungarians by cutting a dog and a wolf in two. This was the way of making alliances by the nomadic people, the parties swearing that they will keep the alliance, and cursed themselves to die like the animals they cut in half if they broke their oath. So, probably beside the Christian way, about which the chronicles do not write anything, Arnulf had to conclude this alliance also in the Hungarians "pagan" way. This shows that Arnulf was aware of the Hungarian danger for the Eastern provinces of his realm: mainly the March of Pannonia. So with this alliance had two purposes: to punish Berengar and to divert their energies far away from Pannonia, so at least for a while he could be assured that they will not attack him. And of course he may have hoped that these two dangerous neighbours would weaken each other.