Boleslaw II has pursued a policy of cooperation with the anti-Imperial faction in Hungary, which has allowed him to gain political independence from the Empire but has put him in conflict with an Imperial ally, the Duchy of Bohemia.
Moreover, he had escalated the conflict with the Premyslid duke Vratislaus II by refusing to pay the annual homage for Silesia and spurring the Bohemian nobility to revolt.
IBoleslaw II besieges the (at this time) Moravian town of Hradec nad Moravicí in 1063, but, defeated, he has to retreat.
In the end, the relations with Vratislaus II are settled to a certain extent when the latter marries Princess Swietoslawa, Boleslaw II's sister.