The Ostrogothic Kingdom was established by the Ostrogoths in Italy and neighbouring areas from 493 to 553.In Italy the Ostrogoths, led by Theoderic the Great, killed and replaced Odoacer, a Germanic soldier, erstwhile-leader of the foederati in northern Italy, and the de facto ruler of Italy, who had deposed the last emperor of the Western Roman Empire, Romulus Augustulus, in 476. Under Theoderic, its first king, the Ostrogothic kingdom reached its zenith, stretching from modern France in the west into modern Serbia in the southeast. Most of the social institutions of the late Western Roman Empire were preserved during his rule.Starting in 535, the Eastern Roman (Byzantine) Empire invaded Italy under Justinian I. The Ostrogothic ruler at that time, Witiges, could not defend successfully and was finally captured when the capital Ravenna fell. The Ostrogoths rallied around a new leader, Totila, and largely managed to reverse the conquest, but were eventually defeated. The last king of the Ostrogothic Kingdom was Teia.