<P> Magnus Maximus was elected emperor by his men in 384, in opposition to Gratian, who defeated him in battle in 383 . Maximus was briefly recognized as the Western Emperor by Eastern Emperor Theodosius I, however this recognition was revoked by both when Maximus invaded Italy and deposed Valentinian II in 387 . Valentinian II fled to the Eastern Roman Empire, and convinced Theodosius to invade the Western Roman Empire and restore him to the Western Roman throne, which he did in 388 . Maximus was defeated in battle near Aquileia, and executed . </P> <Ul> <Li> Theodosius I: 394--395 (Eastern Roman Emperor: 379--394, Sole Emperor: 392--395). </Li> </Ul> <Li> Theodosius I: 394--395 (Eastern Roman Emperor: 379--394, Sole Emperor: 392--395). </Li> <P> Theodosius was proclaimed Eastern Emperor by Gratian on 19 January 379, after securing victory against invading barbarians along the Danube . He became sole emperor in August 394, after defeating the usurper Eugenius . Theodosius died of edema in January 395 . </P>

Who controlled the western roman empire after it fell in the fifth century