Aboul Gheit served as the Minister of Foreign Affairs of Egypt from 11 July 2004 to 6 March 2011. In December 2005, he began mediating the Chad-Sudan conflict. During the Pope Benedict XVI Islam controversy in 2006, he said "this was a very unfortunate statement and it is a statement that shows that there is a lack of understanding of real Islam. And because of this we are hopeful that such statements and such positions would not be stated in order to not allow tension and distrust and recriminations to brew between the Muslim as well as the west." On 26 December 2010, Aboul Gheit opened the first Egyptian consulate outside Baghdad in the northern city of Erbil in a one-day visit to Iraq, where he also held talks with Iraqi President Jalal Talabani.