On the site of today's church stood an older church, which was destroyed by the Turks in 1594. The church and a monastery was completed in 1763 thanks to the Jesuits. In 1763 an earthquake struck the church, but it did not deter the Jesuits from rebuilding the church. The fire in 1848 seriously damaged the church. It was rebuilt from charity in 1860.
Interior furnishings and main marble altar of st. Ondrej dates back to the 19th century. The interior of the church was restored in 1975 and the roof was reconstructed in the early 1990s. At present, the church belongs to the Trnava Diocese.