Traces of settlements date back to the Neolithic age and written mentions recall 1217. In 1396 it was promoted to town.