A church at the site of current San Giovanni Maggiore Basilica was likely erected sometime in the 4th century. There are a number of founding legends for the church. One is that emperor Constantine Ifounded the church in gratitude for the rescue of his daughter Costanza from a shipwreck. It may have been built or introduced into a pre-existing pagan temple dedicated to the cult of Hercules or Hadrian. One of the stones in the architrave is dated to 324. The church underwent numerous reconstructions, including in the 6th century. It was likely made into a Byzantine-style basilica during the era of Belisarius.
After an earthquake in 1635, the last reconstruction in 1656 led to the Baroque building by Dionisio Lazzari seen today. He designed the present cupola, completed in 1685. Further earthquakes in 1732 and 1805 required more reconstructions.
The 1870 earthquake devastated the church and knocked down the roof. For the restoration, Gennaro Aspreno Galante was unable reconstruct the former details. Almost razed in 1872, the local canon Giuseppe Perrella commissioned a neoclassical reconstruction, completed in 1887, from engineer George Tomlinson, with help by Errico Alvino and Federico Travaglini. A hundred years later, the roof again caved down, closing the church again for 42 years, until a restoration in 1978 unveiled the early-Christian apse, below the wooden choir dating from the 17th century. The church was long closed for restoration and architectural studies.
The imposing main altar, damaged over the years, was built in 1743 by Domenico Antonio Vaccaro. Behind the apse is visible the ancient church apse.
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.