During his twenty-five-year reign, John made alliances with the Holy Roman Empire in the West and decisively defeated the Pechenegs at the Battle of Beroia.