Emperor Justinian ( 527 565 ) and his wife Theodora reannexed Italy to the Byzantine Empire and codified Roman law as the state 's legal system .
Justinian and Theodora preferred a system of martial law .