In 1439, Mikołaj Giedlar founded a wooden church dedicated to St. Michael the Archangel, which was consecrated by Bishop Andrzej Oporowski. On January 18, 1439, King Władysław of Varna approved the endowment of the church, and the parish was taken over by the Order of the Holy Sepulcher. This church was burned down during the invasions of Tatar troops under the command of Kantymir Murza in the first half of the 17th century. In 1667, thanks to the efforts of Father Mateusz Piotraszewski, a brick church was built, which was consecrated by Bishop Andrzej Pruski in 1732. In 1784, following the suppression of religious orders, the parish was taken over by diocesan priests.
In 1909, due to its poor technical condition, the church was demolished. In the years 1909–1912 the current brick church was built in the neo-Gothic style, which was consecrated by Bishop Wojciech Tomaka on May 14, 1934.