Hagia Sophia was a Greek Orthodox Christian patriarchal basilica (church), later an imperial mosque, and is now a museum (Ayasofya Müzesi) in Istanbul, Turkey. It remained the world's largest cathedral for nearly a thousand years, until Seville Cathedral was completed in 1520.