Wieluń is one of the many Polish towns whose rich history remains obscured by forgetfulness and ignorance. In pre-partition Poland, it was a royal town and the capital of the Wieluński duchy. It was the seat of state and church administration. One of the glories of the town was the parish church. The first church in Wieluń, dedicated to St Michael the Archangel, was probably built of wood when the town was founded in the second half of the 13th century. It was burnt down in 1335 during the town fire. The new parish church was built by King Casimir the Great. In 1420, after the collegiate church in Ruda near Wieluń had been moved, the invocation of the Visitation of the Blessed Virgin Mary was added. In the following centuries the church was enlarged and rebuilt. Metrical naves of various sizes were built, and two domed chapels were added to the presbytery. Over the centuries many altars were built in the church. In 1730 there were 16 of them. These altars bear witness not only to the piety of their founders, but also to the new forms of worship promoted by the universal Church. The parish church in Wieluń shared the fate of the town. The historical ordeals of the Wieluń region and its capital left a painful mark on the church. By the end of the 18th century it was a ruined building, gradually rising from the rubble.