 It is one of the leading examples of Polish Baroque architecture designed by Tylman van Gameren, however, the church's history dates back to 14th century.The church was first mentioned in 1381 in the deed of donation of Sulisław I Nawoja of Grodziec.In 1407 the church was completely destroyed during a fire, but it was rebuilt the same year in the Gothic style by King Władysław II Jagiełło.