Shortly after his marriage Władysław, like other Piast Dukes, entered the war between Hungary and Bohemia after the extinction of the House of Babenberg. At first, the Duke of Opole-Racibórz supported the Hungarians, supporting Bolesław V the Chaste in his attacks over Opawa and Głubczyce. However, in 1255, and for unknown reasons, Władysław changed sides and supported King Ottokar II of Bohemia, and in 1260 the duke personally took part in the Battle of Kressenbrunn against the Hungarians. This change of alliance soon brought real benefits to Władysław, in the form of regulations in the frontiers between his duchy and the Bohemian Kingdom. In 1262, at the Congress of Danków, Władysław attempted to make a triple alliance with the Bohemian King, Bolesław V the Chaste and Bolesław the Pious, one of the rulers of Greater Poland, but without significant results.