 The local Roman Catholic church has existed since 1702.For most of its history the city belonged to the Kingdom of Poland.From the mid-14th century, to 1772 (see Partitions of Poland), it was part of Ruthenian Voivodeship.