The original building of the current cathedral in Gibraltar was built during the Spanish period. Just after the reconquest of the city to the Moors, the main mosque was decreed to be stripped of its Islamic past and consecrated as the parish church. However, under the rule of the Catholic Monarchs, the old building was demolished and a new church was erected, in Gothic style. The cathedral's small courtyard is the remnant of the larger Moorish court of the mosque. The Catholic Monarchs' coat of arms was placed in the courtyard where it can still be seen today.
Due to the building being severely damaged during the 1779–1783 Great Siege, in 1790 the then Governor of Gibraltar Sir Robert Boyd offered to rebuild the cathedral. The reconstruction took place in 1810 and the opportunity was also taken to widen Main Street. The clock tower was added in 1820 and in 1931 restoration work was carried out on the cathedral and the current west façade erected to replace the poorer one built in 1810.
Until the 19th century, anyone who died in Gibraltar had the right to be buried under the cathedral floor. Bishops are buried in a crypt beneath the statue of Our Lady of Europe.
References:The Chapel of St. Martin is the only completely preserved Romanesque building in Vyšehrad and one of the oldest in Prague. In was built around 1100 in the eastern part of the fortified outer ward. Between 1100 and 1300, the Rotrunda was surrounded by a cemetery. The building survived the Hussite Wars and was used as the municipal prison of the Town of the Vyšehrad Hill.
During the Thirty Years’ War, it was used as gunpowder storage, from 1700 to 1750, it was renovated and reconsecrated. In 1784, the chapel was closed passed to the military management which kept using it as a warehouseand a cannon-amunition manufacturing facility. In 1841, it was meant to be demolished to give way to the construction of a new road through Vyšehrad. Eventually, only the original western entrance was walled up and replaced with a new one in the sountren side. The dilapidating Rotunda subsequently served as a shelter for the poor.