In 1995, Jacques Chirac appointed him secretary of state for European affairs, serving as such until the defeat of the presidential majority in the 1997 legislative election. Barnier then served as a European Commissioner for Regional Policy in the Prodi Commission from 1999 until 31 March 2004. Then he served as Foreign Minister of France in Jean-Pierre Raffarin's government until 5 June 2005 when Dominique de Villepin replaced him with Philippe Douste-Blazy.