In January 1940 Stanley was appointed Secretary of State for War after the previous incumbent, Leslie Hore-Belisha, had been sacked after falling out with the leading officers.
After the Conservatives' massive defeat in the 1945 general election Stanley was prominent amongst those rebuilding the party and he came to be regarded as one of the most important Conservative MPs.