It developed as a regional center of trade and crafts, located at the intersection of the Kalisz–Głogów and Toruń–Wrocław trade routes. During the Thirty Years' War, in 1628, Protestant refugees from German states settled in the town. It was plundered by the Swedes, during the Swedish invasion of Poland in 1656, but soon recovered and famous fairs were held there.