The Ayasofya (St. Sophia) Cathedral was the seat of the first ecumenical council of 325 and the seventh council of 787.