The Hagia Sophia in Thessaloniki is one of the oldest churches in the city still standing today. It is one of several monuments in Thessaloniki included as a World Heritage Site on the UNESCO list.
Since the 3rd century, there was a church in the location of the current Hagia Sophia. In the 8th century, the present structure was erected, based on the Hagia Sophia in Constantinople (present-day Istanbul, Turkey). In 1205, when the Fourth Crusade captured the city, the Hagia Sophia was converted into the cathedral of Thessaloniki, which it remained after the city was returned to the Byzantine Empire in 1246. After the capture of Thessaloniki by the Ottoman Sultan Murad II on 29 March 1430, the church was converted into a mosque. It was reconverted to a church upon the liberation of Thessaloniki in 1912.
Its ground plan is that of a domed Greek cross basilica. Together with the Gül and the Kalenderhane Mosques in Istanbul and the destroyed Church of the Dormition in Nicaea, it represents one of the main architectural examples of this type, typical of the Byzantine middle period.
In the Iconoclastic era, the apse of the church was embellished with plain gold mosaics with only one great cross, similarly to the Hagia Irene in Constantinople and the Church of the Dormition in Nicaea. The cross was substituted with the image of the Theotokos (God-bearer, or Mary) in 787-797 after the victory of the Iconodules. The mosaic in the dome now represents the Ascension. The dome is ringed by the figures of all Twelve Apostles, Mary and two angels.
Between 1907 and 1909 Byzantine historian Charles Diehl restored the whole building that underwent many damages during a fire in 1890. Much of the interior decoration was plastered over after the Great Thessaloniki Fire of 1917. The dome was not restored until 1980.
References:The Basilica of Santa Maria in Trastevere is one of the oldest churches of Rome. The basic floor plan and wall structure of the church date back to the 340s, and much of the structure to 1140-43. The first sanctuary was built in 221 and 227 by Pope Callixtus I and later completed by Pope Julius I.
The inscription on the episcopal throne states that this is the first church in Rome dedicated to Mary, mother of Jesus, although some claim that privilege belongs to the Basilica di Santa Maria Maggiore. A Christian house-church was founded here about 220 by Pope Saint Callixtus I (217-222) on the site of the Taberna meritoria, a refuge for retired soldiers. The area was made available for Christian use by Emperor Alexander Severus when he settled a dispute between the Christians and tavern-keepers.
The church underwent two restorations in the fifth and eighth centuries and in 1140-43 it was re-erected on its old foundations under Pope Innocent II.