 All colonies voted for the new constitution and the replacement of the French Union by the French Community, except Guinea—which thus became the first French African colony to gain independence, at the cost of the immediate cessation of all French assistance.De Gaulle was elected President of the French Republic and of the African and Malagasy Community on 21 December 1958 by indirect suffrage.He was invested on 8 January 1959.