The church of Hagia Sophia ( meaning Holy Wisdom ), now the Hagia Sophia Museum, is a former Greek Orthodox church located in the city of Trabzon in the north-eastern part of Turkey. It dates back to the 13th century when Trabzon was the capital of the Empire of Trebizond. It is located near the seashore and 2 miles west of the medieval town's limits. It is one of a few Byzantine sites still existent in the area.
Hagia Sophia was built in Trebizond during the reign of Manuel I between 1238 and 1263. After Mehmed II conquered the city in 1461 the church was converted into a mosque and its frescos covered in whitewash. During World War I the brief period the city was in Russia's hands, the site was used by the Russian military as a makeshift hospital and depot. Afterwards it was put back into use as a mosque. It was turned into a museum at 1964 which it remains to this day. From 1958 to 1964 the frescoes were uncovered and the church consolidated with the help of experts from Edinburgh University and the General Directorate of Foundations.