text: The greatest of the Byzantine emperors was Justinian the Great ( ruler from 527 to 565 ) , who introduced an equitable legal system , and also extended the boundaries of the empire into Spain , Italy , and Africa .
  
  ###
  
  Justinian the Great was the best Byzantine emperor .