According to the Archeological Museum of Kraków, the oldest relics reveal a wooden structure built at the end of the 10th century and followed by an original stone church constructed in the 11th century, as seen in the lower parts of the walls. These walls became a foundation for a new church built around the turn of the 11th and 12th centuries from smaller rectangular stones. Since the level of the plaza, overlaid with new pavement, rose between 2 and 2.6 meters, the walls of the church were raised up in the 17th century and then covered with stucco. The new entrance was built from the west side and the church was topped with the new Baroque dome. The restoration of the church conducted in the 19th century led to the discovery of its Romanesque past.
