Ayasofya was Istanbul's principal mosque until 1935 and is now a museum. This is the city's most celebrated monument and a supreme achievement of Byzantine architecture.