 In 383, Magnus Maximus, commander of the armies in Britain, declared himself Emperor and established himself in Gaul and Hispania.Gratian died while fleeing him.For a time the court of Valentinian, through the mediation of Ambrose, came to an accommodation with the usurper, and Theodosius recognized Maximus as co-emperor of the West.