President Trump on Thursday left the door open to the United States leaving the North American Free Trade Agreement, just hours after releasing a statement pledging to renegotiate it and remain a member of the three-nation pact.

"I received calls from the President of Mexico and the Prime Minister of Canada asking to renegotiate NAFTA rather than terminate. I agreed... subject to the fact that if we do not reach a fair deal for all, we will then terminate NAFTA," Trump tweeted. "Relationships are good-deal very possible!"

Trump promised late Wednesday night to renegotiate NAFTA rather than leave the agreement outright after a series of phone calls with Mexican President Enrique Peña Nieto and Canadian Prime Minister Justin Trudeau.

Trump spent much of the campaign railing against NAFTA as a deal that is bad for American workers. He promised to pull the United States out of NAFTA and renegotiate all the country's trade deals on terms that are more favorable to the U.S.

However, he's received pressure from more traditional Republicans to stay in the deal as free trade has been a central part of the Republican Party's platform for decades.