First mentioned in 1383. City's location before 1412, confirmed by the king, Sigismund I the Old (1546). Jan Ostrorog, renaissance political writer and polish statesman, was born there in 1436. Jakub Ostroróg also owned property here in the 16th century. Between the 16th and 17th centuries it was an important centre of polish Protestants, Unity of the Brethren - archive, library, seminary.