In 497 Anastasius had agreed with Theoderic, the Ostrogothic king of Italy, that he would rule Italy as Anastasius' deputy. This preserved Italy as nominally a part of the Empire, and neutralised a potentially dangerous neighbour. The arrangement suited Theodoric, as the Ostrogoths were a small aristocratic minority in Italy and the blessing of Constantinople helped reconcile the majority of the population to their rule. The feelings of the majority of Italians towards the Empire were mixed, as Anastasius was a Monophysite, while they were Chalcedonian. The Ostrogoths were Arians, and there was a tendency to consider both them and Monophysites as different breeds of heretics. With a strongly Chalcedonian emperor on the throne and the Italian-based papacy formally healing the rift the situation became less stable. Initially relations were friendly. Theodoric's son-in-law Eutharic was appointed consul in Constantinople in 519 and confirmed as Theodoric's heir. Eutharic died in 522, by which time Justin's policies, possibly influenced by Justinian, had become more anti-Arian. In 526 Theodoric died, leaving Eutharic's ten-year-old son Athalaric as heir to the throne.