The historic basilica served as a cathedral for almost thousand years since 1453, when it was turned into a mosque with the conquest of Istanbul. It later was secularized and converted into a museum in 1935.