structural:expansion, linguistic:voice_change, linguistic:translation, quality:correction, structural:reformatting
Nika riots

Justinian's habit of choosing efficient but unpopular advisers nearly cost him his throne early in his reign. In January 532, partisans of the chariot racing factions in Constantinople, normally rivals, united against Justinian in a revolt that has become known as the Nika riots. They forced him to dismiss Tribonian and two of his other ministers, and then attempted to overthrow Justinian himself and replace him with the senator Hypatius, who was a nephew of the late emperor Anastasius. While the crowd was rioting in the streets, Justinian considered fleeing the capital by sea, but eventually decided to stay, apparently on the prompting of his wife Theodora, who refused to leave. In the next two days, he ordered the brutal suppression of the riots by his generals Belisarius and Mundus. Procopius relates that 30,000 unarmed civilians were killed in the Hippodrome. On Theodora's insistence, and apparently against his own judgment, Justinian had Anastasius' nephews executed.

The destruction that took place during the revolt provided Justinian with an opportunity to tie his name to a series of splendid new buildings, most notably the architectural innovation of the domed Hagia Sophia.