 In 1409 King Władysław II Jagiełło gave it a city charter (see Magdeburg rights).According to the 1921 census the town had a Jewish community consisting of 5618 people, or 83.6 percent of its total population.The vast majority of the Jewish population was exterminated in the Holocaust by German Nazis during their occupation of Poland.