Mieszko I Tanglefoot the city and was proclaimed the new High Duke of Poland. Mieszko III the Old found himself in exile in Racibórz and it seemed that the war between Mieszko Tanglefoot and Casimir II the Just was now just a matter of time. Casimir II, however, went a different route and, in order to gain the favor of the Duke of Racibórz given him the towns of Oświęcim and Bytom (with the fortress of Oświęcim, Bytom, Mikołów, Siewierz and Pszczyna, although some historians estimate that these fortress had belonged to Mieszko only since 1179). On the other hand, Bolesław the Tall
Mieszko I Tanglefoot to both Mieszko (who received the towns of Racibórz and Cieszyn) and Jarosław (who received Opole). In 1177 Mieszko supported his uncle and namesake Mieszko III the Old when he had to fight to maintain his rule over the Duchy of Kraków; this renewed again the disputes between him and Bolesław I the Tall, who wished to obtain the Duchy and with this the Seniorate. However, Bolesław suffered an unexpected defeat by Mieszko and his own son Jarosław, who distracted him to advance over Kraków; in his place was his younger uncle and ally, Casimir II the Just, who captured