Justinian I (c. 482-565), emperor of the Eastern Roman (Byzantine) Empire from 527 to 565. Since the fall of the Western Empire in 476 his aim was to win back the old Rome: his general Belisarius destroyed the Vandal kingdom in Africa in 534, then fought the Ostrogoths through Italy for years — Italy, North Africa and southern Spain were recovered for a time, and the Mediterranean became an inner sea again. Early in his reign he crushed the Nika riot of 532 in Constantinople, and the Hagia Sophia he then ordered rose complete in 537 — the masterpiece of Byzantine building. He set his jurists to organizing Roman law: the Code, the Digest, the Institutes — with the Novels later forming the Corpus Juris Civilis, handing Roman law down whole to posterity. His last years were spent by plague and foreign war; the western conquests slipped away one by one, and the empire passed from summit toward decline.