A vital part of the Imperial ceremony involved the church of Hagia Sophia, which was to the north of the palace and connected to it by public squares, state buildings and passageways from the palace. Most of the time the emperor and his family attended church in the chapels and churches ...