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 II Lambert name for his son was an expression of warming relations between Bolesław I and his stepmother Oda. He organized two devastating invasions to Saxony in 1028 and 1030. Then Mieszko II ran a defensive war against Germany, Bohemia and the Kievan princes. Mieszko II was forced to escape from the country in 1031 after an attack of Yaroslav I the Wise, who installed Mieszko's older half-brother Bezprym onto the Polish throne. Mieszko took refuge in Bohemia, where he was imprisoned by the Duke Oldrich. In 1032 he regained power in one of the three districts, then united the country, making