Ordained as a priest in 1951 in his native Bavaria, Ratzinger embarked on an academic career and established himself as a highly regarded theologian by the late 1950s. He was appointed a full professor in 1958 at the age of 31. After a long career as a professor of theology at several German universities, he was appointed Archbishop of Munich and Freising and Cardinal by Pope Paul VI in 1977, an unusual promotion for someone with little pastoral experience. In 1981, he was appointed Prefect of the Congregation for the Doctrine of the Faith, one of the most important dicasteries of the Roman Curia. From 2002 until his election as pope, he was also Dean of the College of Cardinals. Prior to becoming pope, he was "a major figure on the Vatican stage for a quarter of a century"; he had an influence "second to none when it came to setting church priorities and directions" as one of John Paul II's closest confidants. He has lived in Rome since 1981.