From May 2005 until June 2012, he was Prefect of the Congregation for the Doctrine of the Faith under Pope Benedict XVI. He was the Archbishop of Portland (Oregon) from 1986 to 1995, and then Archbishop of San Francisco from 1995 to 2005. 