Within months of his accession Justinian appointed a commission to sort out a thousand years of Roman legal material, and within six years it had produced the three works that carried Roman law into the European future: a code of imperial constitutions, the Digest, which condensed the writings of the classical jurists and discarded what the commissioners thought obsolete, and the Institutes, a students' textbook that has never entirely gone out of use. His own subsequent legislation was collected as the Novellae, and unlike the rest it was issued mainly in Greek, because that was the language his subjects actually spoke.
He legislated on belief with the same instrument. A law of 529 barred those who were not baptised from teaching, which ended public philosophical instruction at Athens and closed the last Neoplatonic school there; its head, Damascius, and several colleagues left for the Persian court and returned under the terms of a peace treaty a few years later. Whether the school reopened quietly afterwards is still argued from the archaeology of the Athenian houses. Repeated laws restricted Jews and Samaritans, regulated the Samaritan revolts brutally, and prescribed penalties for pagan sacrifice.
The doctrinal centrepiece was a failure on its own terms. Seeking to reconcile the miaphysite churches of Egypt and Syria without repudiating the Council of Chalcedon, he condemned three sets of writings known as the Three Chapters and forced the point through the Second Council of Constantinople in 553. The West resisted, Pope Vigilius was detained in the capital for years and changed his position more than once, and the eastern churches the policy was meant to win were not won.