He was Cardinal Secretary of State from 1991 to 2006, under both popes John Paul II and Benedict XVI. On 27 April 2005, he was elected to succeed Benedict XVI as Dean of the College of Cardinals by his fellow Cardinal Bishops. Sodano was the first person since 1828 to serve as Dean and Secretary of State at the same time.