Ioannes Bryennios used a Pecheneg attack as an excuse for his retreat from the failed siege of Constantinople. He led his troops against them, defeated them and subsequently a treaty was agreed with an exchange of hostages. This secured Pecheneg support for the rebellion of Ioannes' brother Nikephoros