The law was changed on 31 December 1975 under President Valery Giscard d'Estaing. The first mayoral election in 1977 was won by Jacques Chirac, the former prime minister. Chirac served as mayor of Paris for eighteen years, until 1995, when he was elected president of the French Republic.