The Hagia Sofia was converted to a mosque after the Ottoman Turks conqured Constantinople. It was converted to a museum in 1931.