to gain Wołodar's trust, staging a pretended revolt against Bolesław, and joining Wołodar's court. Some time later, when he found himself alone with Wołodar during a hunt, he captured him and led Wołodar before Bolesław, who released him only after Wołodar paid a large ransom and a promised to ally himself with the Duke. Marriage When Zbysława of Kiev, daughter of Sviatopolk II of Kiev and wife of Bolesław died, Włostowic was sent by Bolesław to Sviatopolk to negotiate a marriage to another daughter. However, before the negotiations were completed, Bolesław married Salome von Berg-Schelklingen, and Włostowic himself married another daughter of Sviatopolk, Maria. Reconciliation After having tricked Wołodar and married to Maria, Włostowic was ordered to construct seven churches as reconciliation. But he built 70 churches and 30 convents, and that led to nicknaming a type of romanesque churches in Poland as 'Dunin's churches' (from Peter's nickname, Dunin). Voivode His marriage to Maria, the daughter of a powerful ruler, further elevated Włostowic, and he received the rank of voivode (Palatine or comes palatinus) from Bolesław. At that time voivode was one of the most important positions in the Kingdom of Poland: he commanded the military when the king was absent, presided in courts during the king's absence, was responsible for order and security of the court, and in cases where the king was not an adult, the voivode even became the regent. Death of Bolesław Several years later, Salome, wife of Bolesław, forced him to resign as voivode, replacing him with Wszebor — a man she considered more likely to support her and her sons from her second marriage, against the first-born son of Bolesław, Władysław II the Exile. After the death of Bolesław in 1138, Władysław II became the new duke of Poland, and he reinstated Włostowic to the rank of voivode, as he did not want Wszebor, supporter of his brothers, to retain that rank. However Bolesław, who had had seven sons, in his last will had attempted to significantly reform the Polish monarchy in an attempt to prevent a civil war. Unfortunately, the attempt not only proved futile, but led into the period known as the fragmentation of Poland. Bolesław's will divided Poland into several princedoms, with one of his sons in charge of each one. The will declared that henceforth, the king of Poland was to be the oldest of the Piast dynasty, and not