Prime Minister Justin Trudeau and U.S. President Donald Trump walk together during the G7 Summit in Taormina, Italy on Saturday, May 27, 2017. (Sean Kilpatrick/The Canadian Press via AP)
PHOTO: Sean Kilpatrick/The Canadian Press via AP
Prime Minister Justin Trudeau and U.S. President Donald Trump walk together during the G7 Summit in Taormina, Italy on Saturday, May 27, 2017. (Sean Kilpatrick/The Canadian Press via AP)
Now playing
01:36
Trump has said often climate change isn't real
PHOTO: Getty Images
Now playing
00:57
Draft study warns of severe climate change
PHOTO: pool
Now playing
01:09
Pruitt (still) won't say what Trump believes
WASHINGTON, DC - JUNE 01:  U.S. President Donald Trump announces his decision for the United States to pull out of the Paris climate agreement in the Rose Garden at the White House June 1, 2017 in Washington, DC. Trump pledged on the campaign trail to withdraw from the accord, which former President Barack Obama and the leaders of 194 other countries signed in 2015. The agreement is intended to encourage the reduction of greenhouse gas emissions in an effort to limit global warming to a manageable level.  (Photo by Win McNamee/Getty Images)
PHOTO: Win McNamee/Getty Images
WASHINGTON, DC - JUNE 01: U.S. President Donald Trump announces his decision for the United States to pull out of the Paris climate agreement in the Rose Garden at the White House June 1, 2017 in Washington, DC. Trump pledged on the campaign trail to withdraw from the accord, which former President Barack Obama and the leaders of 194 other countries signed in 2015. The agreement is intended to encourage the reduction of greenhouse gas emissions in an effort to limit global warming to a manageable level. (Photo by Win McNamee/Getty Images)
Now playing
00:54
Staff mum on if Trump believes climate change
al gore trump paris agreement climate crisis town hall sot_00001017.jpg
al gore trump paris agreement climate crisis town hall sot_00001017.jpg
Now playing
01:47
Gore: Trump surprised me on Paris Agreement
panelists spar over climate deal
PHOTO: CNN
panelists spar over climate deal
Now playing
02:38
Panel erupts: Stop using fake stats
PHOTO: pool
Now playing
01:25
President Trump withdraws US from Paris accord
Now playing
01:44
Haley: Trump believes the climate is changing
india react trump withdrawl ravi agrawal_00010121.jpg
india react trump withdrawl ravi agrawal_00010121.jpg
Now playing
01:46
India standing by Paris climate deal
PHOTO: ABC
Now playing
01:08
Late night mocks Trump's decision
French President Emmanuel Macron arrives at the ancient Greek Theatre of Taormina during the Heads of State and of Government G7 summit, on May 26, 2017 in Sicily.
The leaders of Britain, Canada, France, Germany, Japan, the US and Italy will be joined by representatives of the European Union and the International Monetary Fund (IMF) as well as teams from Ethiopia, Kenya, Niger, Nigeria and Tunisia during the summit from May 26 to 27, 2017. / AFP PHOTO / Tiziana FABI        (Photo credit should read TIZIANA FABI/AFP/Getty Images)
PHOTO: TIZIANA FABI/AFP/AFP/Getty Images
French President Emmanuel Macron arrives at the ancient Greek Theatre of Taormina during the Heads of State and of Government G7 summit, on May 26, 2017 in Sicily. The leaders of Britain, Canada, France, Germany, Japan, the US and Italy will be joined by representatives of the European Union and the International Monetary Fund (IMF) as well as teams from Ethiopia, Kenya, Niger, Nigeria and Tunisia during the summit from May 26 to 27, 2017. / AFP PHOTO / Tiziana FABI (Photo credit should read TIZIANA FABI/AFP/Getty Images)
Now playing
01:01
Macron to US: Make our planet great again
CA GOV Jerry Brown ISO CNNI
PHOTO: CNN
CA GOV Jerry Brown ISO CNNI
Now playing
01:42
California governor: Trump's decision is crazy
PHOTO: CNN/Getty Images
Now playing
02:46
Zakaria: US resigned as leader of free world
WASHINGTON, DC - APRIL 29:  People gather near the U.S. Capitol for the People's Climate Movement before marching to the White House to protest President Donald Trump's enviromental policies April 29, 2017 in Washington, DC. Demonstrators across the country are gathering to demand  a clean energy economy. (Photo by Astrid Riecken/Getty Images)
PHOTO: Astrid Riecken/Getty Images
WASHINGTON, DC - APRIL 29: People gather near the U.S. Capitol for the People's Climate Movement before marching to the White House to protest President Donald Trump's enviromental policies April 29, 2017 in Washington, DC. Demonstrators across the country are gathering to demand a clean energy economy. (Photo by Astrid Riecken/Getty Images)
Now playing
01:18
Thousands protest Trump's climate policies
PHOTO: CNN
Now playing
03:15
Trump Admin guts Obama-era climate regulations

Story highlights

Sources indicated Rank's exit is tied to Trump's Paris decision

China, the world's largest carbon emitter, said it would stick by Paris deal

(CNN) —  

Acting US ambassador to China David Rank resigned from his post in Beijing over President Donald Trump’s decision to withdraw from the Paris climate agreement, several sources familiar with the decision told CNN.

A career foreign service officer since 1990, Rank assumed the position of deputy chief of mission at the US embassy in Beijing in January 2016 and had been serving as charge d’affaires until the arrival of Trump’s pick for the job, former Iowa Gov. Terry Branstad, who was confirmed by Congress late last month.

“Dave is exactly the type of diplomat any American would want representing their interests abroad, and he was sought after within the State Department for increasingly difficult and challenging assignments because he’s strategic, smart, savvy, curious, loyal and non-partisan,” said Dan Feldman, who worked with Rank for five years on Afghan issues.

“Given he spent much of his career seeking to strengthen the US-China relationship to benefit all Americans, we need his expertise and skills now more than ever before,” he said. “It’s heart-wrenching that we’re losing career officers of his talent, as they pride themselves on serving any administration, but some are increasingly grappling with whether they must take principled decisions as they balance their sense of duty with their conscience.”

Rank has served in several senior positions within the US State Department including time as the director of the office of Afghanistan affairs and as a senior adviser to the special representative for Afghanistan and Pakistan.

“Mr. Rank made a personal decision,” a senior State Department official told CNN, stopping short of citing the climate deal developments as the reason. “We appreciate his years of dedicated service to the State Department.”

But sources familiar with the decision indicated that Rank’s departure is directly tied to Trump’s controversial move to pull out of the accord.

One source familiar with Rank’s decision to resign said that Rank addressed his staff on Monday and talked about his four tours in China and how much he loved the country. But he said this weekend he was asked to do something which “as a parent, patriot and Christian, I simply cannot do.”

Rank, according to the source, told the embassy staff he couldn’t in good conscience do anything that would contribute to the implementation of the decision to withdraw from the climate agreement. He said he looked for a way to avoid a conflict between his duty and conscience but when he couldn’t find one, he offered to resign, assuming his resignation would be accepted. And it was accepted.

Rank was serving in China when President Xi Jinping and then-US President Barrack Obama jointly declared their commitment to the Paris agreement.

China, the world’s largest carbon emitter, said it would stick by its commitments to the treaty despite the US decision.

Rank becomes the second US diplomat serving at one of the largest embassies in the world to publicly split with Trump in recent days.

The acting US ambassador to the United Kingdom, Lewis Lukens, issued a statement on Twitter singling out London Mayor Sadiq Khan for praise after Trump attacked him on Twitter in the wake of the terror attacks which killed at least seven people.

“I commend the strong leadership of the @MayorofLondon as he leads the city forward after this heinous attack,” read a tweet from the US’ London embassy attributed to Lukens.

Trump appeared to misconstrue a statement made by Khan after the attack in London, writing on Twitter: “At least 7 dead and 48 wounded in terror attack and Mayor of London says there is “no reason to be alarmed!”

Lukens is serving as ambassador until Trump gets a permanent pick confirmed. Trump has yet to formally nominate his choice for the job, although he said prior to his inauguration that he would choose New York Jets owner Woody Johnson.