The church was funded by Sigrid Bielke, wife of the field marshal Gustaf Horn and resident at Ervalla gård, who may have judged the old medieval church too poor and unsuitable for worship. Its architect, Mathias Spieler, also designed Ulrika Eleonora church on Kungsholmen in Stockholm, and the two buildings share a family resemblance despite their difference in scale. The medieval church was demolished shortly before the new one was completed.
In August 1789 lightning struck the church, destroying the roof, tower and bells; only the pulpit and pews survived from the interior fittings. The parish itself had little money for rebuilding, and reconstruction was largely funded by Baroness Magdalena Rudbeck of Ervalla gård together with Samuel Kniberg (later ennobled as Stiernecreutz). A new tower was raised, and the rebuilt church was ready by the summer of 1790. As a result, the present roofline and tower do not entirely belong to the original Baroque design.
A thorough interior repair took place in 1850, paid for by the then owner of Ervalla säteri, L. M. Baumgarten, and his wife C. M. Mossel; the couple also gave land to extend the churchyard. The church was painted and whitewashed, the altar table renewed and marbled, and a new pulpit donated. A visiting scholar from the Academy of Antiquities examined the church's furnishings in 1893 and found traces of seventeenth-century painted decoration.
A major renovation in 1900, led by the noted architect Agi Lindegren (also engaged on works at Västerås and Uppsala cathedrals), gave the church a new chancel and altarpiece, removed the east and west galleries, and brought the older seventeenth-century pulpit back into use after it had been set aside since the 1850s changes.
The most recent restoration, in 1996–97 under architect Jerk Alton, aimed to recover Lindegren's colour scheme and architectural details, which had been lost under repainting in 1938 and 1972. The altarpiece was re-marbled, a communion rail was made from parts of an older kneeling rail, older ceiling and vault decorations were uncovered, and the sacristy and north gallery were altered. A free-standing altar for facing the congregation was also introduced.
Among the furnishings are a seventeenth-century font and pulpit, the latter set aside for decades before being reinstated, along with a medieval chest. The two bells, cast in 1789 by the Örebro founder Olof Kulander, and an organ with a case dating from 1862, are further reminders of the church's long and often disrupted history.