The correct answer is:
D. it preserved Roman laws and influenced legal systems of the Middle Ages.
The Justinian Code, also known as the Corpus Juris Civilis, was a comprehensive compilation of Roman legal texts and principles that helped preserve Roman law and served as a foundational influence on various legal systems in Europe during the Middle Ages and beyond.