 Later on Chmielnik belonged to the Oleśnicki family who made efforts to grant it town charter.In 1551 Chmielnik was granted Magdeburg town rights by king Sigismund II Augustus, hereby formally becoming a town.In 1580 king Stephen Báthory granted the town a privilege of organizing more fairs.