In 527, Justinian succeeded him as the emperor of the Byzantine Empire. In order to stabilize the social order of the empire and ensure the autocratic power of the emperor. He established the Codification Committee and compiled the Justinian Code for six years, which was the first systematic legal document in European history and had a far-reaching impact on the development of civil law in western European countries.