The Central American nation of Nicaragua pledged Wednesday to become a party to the Paris climate change agreement, leaving the U.S. and Syria as the only two outliers to the global emissions pact.

"We will soon adhere, we will sign the Paris Agreement," Nicaragua President Daniel Ortega told state media on Wednesday. "We have already had meetings addressing the issue and we have already programmed the adhesion of Nicaragua and the signing of the Country Agreement."

Nicaragua and Syria were the only two countries not to sign onto the agreement. Once Nicaragua fulfills its pledge, it will leave Syria as the only remaining country not to sign onto the deal, and the U.S. as the only country actively working to exit from it.

President Trump announced his decision June 1 to withdraw from the Paris Agreement that former President Barack Obama committed the nation to meet through the enactment of regulations and support for renewables and cleaner forms of energy. Trump called the non-binding agreement a bad deal for the American taxpayer and the economy.

Trump has said he would seek to renegotiate the terms of deal, but that is looking less likely this week. French President Emanuel Macron said earlier this week before the United Nations that the agreement is not open to renegotiation unless a country wants to increase its obligation to cut emissions further.

The U.S. won't officially remove itself from the agreement for three years. Under U.N. rules withdrawal is a multi-year process, which means the U.S. won't formally exit until 2020, in the middle of the next presidential campaign.