The earliest existing historical records of the Svarstad church date back to the year 1359, but the church was not built that year. It is said that the first church was a wooden stave church and it may have been built around the year 1200. That church was dedicated to St. Olav. Two of the decorative portal planks from this church have been preserved at the Museum of Cultural History, Oslo for a long time. The old church had a fire in 1392 and it was either repaired or completely rebuilt in 1395. By the end of the 17th century, the church was considered to be far too small for the parish. In 1651, a builder was hired to enlarge the church, but it was ultimately decided to build a new building on the same site. The new church was consecrated in 1657. The new building was a wooden long church with a rectangular nave and a smaller chancel on the east end. The church was owned by the Count of Larvik until it was sold to the congregation in 1764.
In 1814, this church served as an election church (valgkirke). 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.
In 1866-1867, the church was renovated. The whole roof was rebuilt and a new tower on the nave roof was built. This renovation also included the construction of a small sacristy built on the east end of the chancel and a church porch on the west end of the nave.
References:Rosenborg Palace was built in the period 1606-34 as Christian IV’s summerhouse just outside the ramparts of Copenhagen. Christian IV was very fond of the palace and often stayed at the castle when he resided in Copenhagen, and it was here that he died in 1648. After his death, the palace passed to his son King Frederik III, who together with his queen, Sophie Amalie, carried out several types of modernisation.
The last king who used the place as a residence was Frederik IV, and around 1720, Rosenborg was abandoned in favor of Frederiksborg Palace.Through the 1700s, considerable art treasures were collected at Rosenborg Castle, among other things items from the estates of deceased royalty and from Christiansborg after the fire there in 1794.
Soon the idea of a museum arose, and that was realised in 1833, which is The Royal Danish Collection’s official year of establishment.