He told his staff that as "a parent, a patriot and a Christian," he could not in good conscience play a role in implementing US President Donald Trump's decision to withdraw, according to a colleague familiar with Rank's comments.
Rank's resignation was a display of the diplomatic unease over Trump's decision to exit the Paris accord.
Under the Obama Administration, climate change was incorporated into the daily business of diplomacy at every level, and Rank was known for his personal concern about the environment.
Career diplomats like Rank have been overseeing embassies around the world because of how slowly the Trump Administration has been nominating political appointees as ambassadors.
"Mr Rank made a personal decision," said a spokesperson for the East Asian and Pacific Affairs Bureau. "We appreciate his years of dedicated service to the State Department."
Rank did not immediately respond to a request for comment. His resignation was first reported by John Pomfret, editor-at-large at SupChina.
Adding to the awkwardness, over the weekend another career diplomat broke ranks with Trump after he criticised London Mayor Sadiq Khan for suggesting there was "no reason to be alarmed" by armed police patrols in the city.
A few hours later, Lewis Lukens, the acting ambassador of the US Embassy in Britain, used the US Embassy twitter account to say Khan had shown "strong leadership" in responding to the London Bridge terrorist attack.
Foreign Service officers take pride in putting their personal politics aside and representing their country, under both Republican and Democratic presidents, making this type of resignation unusual.
The State Department moved swiftly to replace Rank, informing the Ministry of Foreign Affairs that Jonathan Fritz would be the new charges d'affaires, the deputy who heads the mission in the ambassador's absence. Branstad is undergoing diplomat training, and has not arrived yet.
Rank, who speaks Mandarin Chinese, French, Dari and Greek, was a China hand who was on his fourth tour in China. Before that, he had been a political counsellor at the US Embassy in Kabul, director of the State Department's Office of Afghanistan Affairs.
Dan Feldman, who was the Special Representative for Afghanistan and Pakistan when Rank was a senior adviser there, said Rank was the quintessential, non-political diplomat.
"I couldn't tell you what his politics were until now," he said. "I don't remember having a political conversation with him in which he espoused issues or concern about anything other than serving the president, and the secretary of state, and the interest of the American people."
Though Rank told his staff he had expected to retire by the end of the year, being acting ambassador for a large and important embassy like the one in Beijing would have put him line to become ambassador in another, smaller country.