The earliest existing historical records of the church date back to the year 1487, but the church was likely founded in the 13th century. The oldest church on this site was a stave church that was probably the one that was standing in 1487. In the 1500s or 1600s, that old church was torn down and replaced with a long church made out of rough timber. Both of these churches stood about 30 metres (98 ft) north of the present church, very close to the shore of the Herefossfjorden. In 1723, the church was sold into private ownership by the King to help pay off his war debts.[3][4]
In 1814, this church served as an election church (Norwegian: valgkirke).[5] Together with more than 300 other parish churches across Norway, it was a polling station for elections to the 1814 Norwegian Constituent Assembly which wrote the Constitution of Norway. This was Norway's first national elections. Each church parish was a constituency that elected people called "electors" who later met together in each county to elect the representatives for the assembly that was to meet in Eidsvoll later that year.[5][6]
In 1827, the parish purchased the building from a private owner. Due to its low location along the shoreline, the church often worried about flooding along the Herefossfjorden. In 1860, during a big flood, water inundated the church causing some damage so it was decided to replace the church and move it to higher ground. In 1865, a new church was built about 30 metres (98 ft) south of the old church. The new church was built in an octagonal design and it was consecrated on 11 October 1865 by the BishopJacob von der Lippe. After the new church was completed, the old church was torn down. Later, about 1,200 cubic metres (42,000 cu ft) of dirt was brought in to raise the land to prevent flooding and protect the church and cemetery.[3][4]