Theodosius I was granted rule of the Eastern Roman provinces by the previous Emperor, Gratian of the Valentinianic dynasty, due to Gratian having inherited the entire Empire from his predecessor Valens in 378. Gratian would continue to rule the Western Roman Empire until 383. After the deaths of Gratian and his successor Valentinian II, Theodosius became the last emperor to rule over both the eastern and the western halves of the Roman Empire 392-395.