In 1958, he came out of retirement: the Algerian War was happening. He rewrote the Constitution of France and founded the Fifth Republic after it was by a referendum. He was elected President of France later that year, a position to which he was re-elected in 1965 and held until his resignation in 1969.