The stone floor of Hagia Sophia dates from the 6th century. After the first collapse of the vault, the broken dome was left in situ on the original Justinianic floor and a new floor laid above the rubble when the dome was rebuilt in 558.[180] From the installation of this second Justinianic floor, the floor became part of the liturgy, with significant locations and spaces demarcated in various ways with different coloured stones and marbles.[180]