Branstad was confirmed by the Senate on May 22, 2017, in an 82 to 13 vote. He resigned as governor on May 24, 2017, in a ceremony at the Iowa State House, and was immediately sworn in as U.S. Ambassador to China. His appointment marked the third time in a decade that a politician resigned a statewide office to become the Ambassador to China; Jon Huntsman Jr. resigned as governor of Utah in 2009, and Max Baucus resigned as U.S. Senator from Montana in 2014.