Town mentioned as early as 1202, according to legend founded by Princess Żaganna in 700. It is associated with a large military garrison