On July 19, 2017, it was announced that President Donald Trump had the intention of nominating Esper to become U.S. Secretary of the Army. He is Trump's third nominee for the position, following the withdrawals of Vincent Viola and Mark E. Green. He was confirmed by the Senate on November 15, 2017. He resigned on June 24, 2019 to become acting Defense Secretary.