Deposition and exile
The tyrannical rule of Władysław II and Agnes led to many of their subjects switching their allegiance to the junior dukes. In early 1146 the high duke's forces were finally defeated near Poznań. Władysław II escaped to Bohemia, while Agnes and her children remained in Kraków, where for some time they maintained resistance against the junior dukes from the Wawel Castle. However, the attempts to defend the city were unsuccessful and, in the end, the whole family was reunited in exile.
After a short time at the Bohemian court of Duke Vladislaus II, Agnes' half-brother, King Conrad III of Germany, offered his hospitality to the Polish ducal family, who settled at the Kaiserpfalz of Altenburg. At first, it seemed that Władysław II would soon regain power in Poland. A German expedition against the junior dukes was launched in 1146, but due to flooding of the Oder River and the pressures on the German king by the margraves Albert the Bear and Conrad of Meissen, the campaign failed.
The failure of the expedition did not discourage Agnes, who continued with her attempts to restore her husband. She asked for the intervention of Pope Eugenius III, who decided to raise the question in the 1148 Council of Reims, and sent his legate Guy to Poland to obtain the submission of the junior dukes. However, they refused to accept the return of Władysław II, and the pope declared a ban over Poland. The pope's actions had few repercussions thanks for the united support of the Polish church hierarchy for the junior dukes.
In 1152 King Conrad III died and was succeeded by his nephew Frederick Barbarossa. With the accession of this energetic ruler, the hopes of Agnes and Władysław II of returning to Poland were rekindled. With the encouragement of his aunt, the new German king launched an expedition against Poland in 1157. The campaign was a success but unexpectedly Barbarossa did not restore Władysław II to the Polish throne. Instead High Duke Bolesław IV was declared a vassal of Emperor Frederick and was compelled to pay tribute to him. In compensation to Władysław II, he forced Bolesław to promise the restitution of the Silesian duchy to Władysław's sons.