Eisenhower directed the invasions of Africa, Sicily, and Italy and then took command of Supreme Headquarters, Allied Expeditionary Force (SHAEF), in preparation for the invasion of France. After the D-Day landing, he continued to direct the Allied forces through the end of the war. In 1952, he was elected the nation's thirty-fourth president; he was reelected in 1956.