Justinian I was a Byzantine emperor from 527-565 CE. In 532 CE, a chariot race in Constantinople escalated into a week-long rebellion that destroyed parts of the city. Justinian rebuilt Constantinople with new bridges, public baths, parks, roads, hospitals, and the famous Hagia Sophia cathedral. He also tried to reconquer lost Byzantine lands in Europe and North Africa through military campaigns. Justinian created the Justinian Code, a systematic body of laws that revised outdated Roman laws and became the basis for many modern legal codes in the Western world.