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:The Clementinum is a historic complex of buildings in Prague. Until recently the complex hosted the National, University and Technical libraries, the City Library also being located nearby on Mariánské Náměstí. The Technical library and the Municipal library have moved to the Prague National Technical Library at Technická 6 since 2009. It is currently in use as the National Library of the Czech Republic.
Its history dates from the existence of a chapel dedicated to Saint Clement in the 11th century. A Dominican monastery was founded in the medieval period, which was transformed in 1556 to a Jesuit college. In 1622 the Jesuits transferred the library of Charles University to the Klementinum, and the college was merged with the University in 1654. The Jesuits remained until 1773, when the Klementinum was established as an observatory, library, and university by the Empress Maria Theresa of Austria.