On June 2, 2009, President Barack Obama nominated him to the position of United States Secretary of the Army. The United States Senate confirmed McHugh in a voice vote on September 16, 2009. He was sworn in as the 21st Secretary of the Army at a Pentagon ceremony on September 21, 2009. He resigned on November 1, 2015.