During the 6th century AD in the Eastern Roman Empire, the Emperor Justinian codified and consolidated the laws that had existed in Rome so that what remained was one twentieth of the mass of legal texts from before.