 The late-Romanesque basilica church was probably built in the 10th–11th century, on top of an older Carolingian building.From 1270–80 the church was expanded.During the Late Middle Ages it was the center of a deaconate within the Diocese of Constance which included the villages of Aarwangen (until 1577), Roggwil (until 1664) and Murgenthal (settlements of Balzenwil, Gruben and Walliswil until 1664, Riken and Glashütten until 1824).