 The deposition of Duke John II of Żagań in 1488 marked the end of the long rule of the Piast dynasty in the Duchy of Głogów and the city of Zielona Góra.Later on, the duchy was ruled by future Kings of Poland John I Albert and Sigismund I the Old, before it was integrated with the Kingdom of Bohemia in 1506, although Polish king Sigismund I the Old still claimed his rights to the city only in 1508.The city flourished during the reign of Sigismund I the Old.