The earliest existing historical records of the church date back to 1589, but that was not when the church was built. During the 1500s, the church contained artifacts dating back to the 1100s and 1200s, so the church was likely built in the 12th century. The first church here was actually located at Skei, about 1.5 kilometres (0.93 mi) west of the present church site. The church was located quite close to the river Surna and due to the soil conditions, and shifting river bed over time, the churchyard would occasionally flood, and worse yet, the river would wash away parts of the graveyard, exposing coffins. At some point during the 1600s, the church was disassembled, moved, and rebuilt about 1.5 kilometres (0.93 mi) to the east to Ranes. After the move, the church yard was gradually swallowed up by the shifting river. This old stave church existed at Ranes until around 1702 when it was torn down. In 1702, a new church on the same site was completed. The new church was a large, timber-framed building with a cruciform floor plan, a tower on the roof, a sacristy in the east and a church porch in the west. That church was painted red and had a tile roof.[3][4]
In 1814, this church served as an election church (Norwegian: valgkirke).[5][6] 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][7]
By the late-1860s, the old church was in poor condition and it was decided that rather than repair the church, they would replace it with a new building on the same site. In 1869, the old church was torn down and a new church was built. The new building was consecrated on 15 December 1869. The new building was designed by the Molde architect Schmedling and it was built by lead builder Ole Scheistrøen. It was a wooden long church. The altarpiece from the 1702 church was stored in the attic of the new church until a renovation in 1935 when the old altarpiece was moved to the choir and reused.[8][9][4]