Justinian served as emperor of the Byzantine Empire from 527 to 565. Justinian is best remembered for his work as a legislator and codifier. During his reign, Justinian reorganized the government of the Byzantine Empire and enacted several reforms to increase accountability and reduce corruption.