ExxonMobil doesn't want President Trump to abandon the global climate agreement reached in Paris.

America's biggest oil company told the White House it believes the Paris agreement is an "effective framework for addressing the risks of climate change" and the U.S. should remain a party to it.

Exxon (XOM) said the country is "well positioned to compete" under the terms of the Paris deal, which was reached in late 2015 with the goal of slowing global warming. President Obama hailed the agreement as "the moment that we finally decided to save our planet."

The Exxon letter was sent to the White House on March 22, just days before Trump took a massive swipe at environmental regulations implemented under Obama. The administration had asked Exxon for its views on the Paris accord.

Trump signed an executive order on Tuesday to undo the Clean Power Plan, which aimed to slash carbon emissions by coal plans and other power utilities.

Before taking office, Trump called climate change a "hoax" and blasted the Paris COP21 agreement as a "bad deal" for the U.S.

However, after winning the election Trump told The New York Times he has an "open mind" about the Paris agreement and said he believes clean air and "crystal clear water" are important.

Related: Trump move won't bring back coal or mining jobs

Exxon has a complex and controversial history with climate change. The energy giant is being investigated for allegedly misleading the public and shareholders about what it knew about the dangers of climate change.

But in 2007 Exxon admitted publicly that climate change poses risks and said it's responsible to begin working on ways to reduce emissions.

Exxon has also been a consistent public supporter of the Paris agreement.

"We welcomed the Paris Agreement when it was announced in December 2015, and again when it came into force in November 2016. We have reiterated our support on several occasions," Peter Trelenberg, Exxon's environmental policy and planning manager, wrote to the White House.

Last month Exxon CEO Darren Woods, who replaced Rex Tillerson when he left to become Trump's secretary of state, wrote a blog post saying the company is "encouraged" that the Paris agreement creates a framework for "all countries" to address rising emissions.

Exxon noted in its letter to the White House that unlike the Kyoto Agreement, the Paris deal is the first major international accord to feature pledges from developed nations like the U.S. and developing ones like China. Exxon pointed out that China is the world's leading greenhouse gas emitted and India is likely to pass the U.S. as No. 2 before mid-century.

Related: What if Trump dumps Paris climate deal?

Even though Trump is a climate change skeptic, his secretary of state and leading emissary on climate issues, does not appear to be one.

During his confirmation hearing in January, Tillerson said he came to the conclusion years ago that "the risk of climate change does exist and the consequences could be serious enough that action should be taken."

But Tillerson ducked allegations that Exxon misled the public on climate change. He refused to answer repeated questions during the hearing about whether the company ignored internal research going back to the 1970s on the impact of burning fossil fuels.

Earlier this month it emerged that Tillerson allegedly used the pseudonym "Wayne Tracker" to send emails related to climate change while serving as CEO of Exxon.

-- CNNMoney's Julia Horowitz contributed to this report.