Originally a Romanesque parish church, it was replaced by a Gothic basilica in the 14th century, which was later modified in Baroque style. First written records dates from 1094.