In the 17th century, Copenhagen had become home to a sizeable garrison. A military church was built at Kastellet in 1670 but its modest size only allowed it to serve the personnel at the fortress. The rest of the troops in the city had to use Church of Holmen, a former anchor forge which had been converted into a naval church in 1619.
When Sophie Amalienborg burned down in 1689, its chapel survived the flames and was subsequently put at the disposal of the Army. However, the small building which had been built for members of the royal court only served as a temporary solution. Christian V therefore provided a tract of land at Dronningens Tværgade for the construction of a new church for the Army and military engineer Georg Philip Müller completed a set of renderings in 1697. When Frederick IV ascended the throne in 1699, he moved the project to a site in the southernmost section of Sophie Amalienborg's former gardens. Construction began in 1703, still to Müller's design but under the supervision of Domenico Pelli. The following year it was decided to built the church to a larger and somewhat modified design and the project was taken over by General Master Builder Wilhelm Friedrich von Platen. The church was inaugurated on 24 March 1706.
References:Kristiansten Fortress was built to protect the city against attack from the east. Construction was finished in 1685. General Johan Caspar von Cicignon, who was chief inspector of kuks fortifications, was responsible for the new town plan of Trondheim after the great fire of 18 April 1681. He also made the plans for the construction of Kristiansten Fortress.
The fortress was built during the period from 1682 to 1684 and strengthened to a complete defence fortification in 1691 by building an advanced post Kristiandsands bastion in the east and in 1695 with the now vanished Møllenberg skanse by the river Nidelven. These fortifications were encircled by a continuous palisade and thereby connected to the fortified city. In 1750 the fortress was modernized with new bastions and casemates to protect against mortar artillery.