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.