Despite the fact the edifice did not manage to remain intact until now, given it was repeatedly destroyed during foreign occupations, its origins date back to 987. The present church was rebuilt in 1519 in a Gothic style with visible Baroque influences.