The first record of the town was made in the early 13th century , with the initial role to settle civil matters between the church and landowners .
The first written record of the town was in the early 13th century .