sentences:  In 1581 King Stefan Batory granted the town the right to hold trade fairs.From 1594 to 1644 the town was known as Czarnkowskich and from 1644 to 1726 as Opalińskich z Bnina.In 1771 General Jan Lipski began building a palace, adjacent to the town, which was completed in 1780.