The earliest existing historical records of the church date back to the year 1544, but the church was not new that year. The church was likely founded in the 12th century and it was located about 30 metres (98 ft) to the northeast of the present church site. In the 1640s, the church building was either renovated or completely rebuilt. The altarpiece is dated to 1644, so that may have been the year of construction. At that time, the church was a log building in a cruciform style with an entry porch at the west end. In 1730, work on a new church was begun and construction lasted for four years. The new building was located about 30 metres (98 ft) to the southwest of the old church. The new building was designed with four arms attached to the central octagon creating an octagonal-cruciform floor plan with a steeple above in the center of the church. After the new church was completed, the old church building was torn down. The church was consecrated by 7 August 1735 by the local provostAnders Dass, the son of poet and priest Petter Dass. In 1750, the church was dedicated to St. Michael. Around the year 1770, a sacristy was added to the east end of the choir.[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 at Eidsvoll Manor later that year.[5][6]