Mieszko I Tanglefoot in 1163, and thanks to the intervention of the Emperor Frederick Barbarossa, Mieszko and his older brother Bolesław I the Tall returned to Silesia. Mieszko and Bolesław I the Tall co-ruled the Duchy of Wrocław during the period 1163–1173. At first, their rule did not extend over the major Silesian cities, which remained under the control of Bolesław IV the Curly, the current High Duke of Poland. The brothers retook them in the year 1165, taking advantage of Bolesław IV's involvement in a crusade against the Prussians. However, soon Mieszko began his efforts to obtain his own Duchy, maybe in
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