The Justinian Code was a series of laws and treaties that was established by the Byzantine emperor Justinian in the 6th century to rule his empire. It was so succesful that the Byzantines continued to use it for 900 years.