Building designed and funded by Bishop Adam Stanisław Grabowski in 1729-34. The bell tower next to the church dates back to 1739.