In the 10th century it became part of the emerging Polish state under first historic ruler Mieszko I of Poland, who erected a new stronghold there.[4] The first known historic record comes from 1010, in Thietmar of Merseburg's chronicles,[5] after the troops of King Henry II of Germany in the conflict over the March of Lusatia and the Milceni lands had attacked the forces of the Polish Duke Bolesław I Chrobry and again besieged Głogów on August 9, 1017, without result. The next year Henry and Bolesław concluded the Peace of Bautzen.