The quarter was connected to the city proper at the construction of the Theodosian Walls, but the Church of St. Mary remained outside of the walls until 627, when Emperor Heraclius (r. 610–641) built another wall to enclose it.