The Church of Mary Magdalene (Mária Magdolna-templom) in the Castle District of Buda was built in the 13th century and its story and various purposes reflect many aspects of Hungarian history. During the Ottoman occupation, this was the only functioning Christian church in the country until its later transformation to a mosque. Its original function was later restored and it served as the coronation venue for Franz I of Hungary in 1792. It suffered severe damage during the war, and was almost completely destroyed during the Communist era – with the exception of its Gothic bell tower and various minor sections. Today, its remains serve as a memento of the cultural destruction of the Socialists, while the tower can be climbed for panoramic views over the city.