BRANCHBURG, N.J. — President Donald Trump on Sunday scoffed at “politically motivated ingrates” who had questioned his administration’s commitment to revive Puerto Rico after a pulverizing hurricane and said the federal government had done “a great job with the almost impossible situation.”

READ MORE: Donald Trump goes on 2nd Twitter rant of the day over Puerto Rico, slams mayor again

The tweets coming from a president ensconced in his New Jersey golf club sought to defend Washington’s efforts to mobilize and coordinate recovery efforts on a U.S. territory in dire straits almost two weeks after Hurricane Maria struck.

We have done a great job with the almost impossible situation in Puerto Rico. Outside of the Fake News or politically motivated ingrates,… — Donald J. Trump (@realDonaldTrump) October 1, 2017

…people are now starting to recognize the amazing work that has been done by FEMA and our great Military. All buildings now inspected….. — Donald J. Trump (@realDonaldTrump) October 1, 2017

…for safety. Thank you to the Governor of P.R. and to all of those who are working so closely with our First Responders. Fantastic job! — Donald J. Trump (@realDonaldTrump) October 1, 2017

San Juan Mayor Carmen Yulin Cruz on Friday accused the Trump administration of “killing us with the inefficiency” after the storm. She begged the president, who is set to visit Puerto Rico on Tuesday, to “make sure somebody is in charge that is up to the task of saving lives,” and appealed for help “to save us from dying.”

Story continues below advertisement

WATCH: ‘We are dying here’ says Puerto Rican mayor to Trump administration after Hurricane Maria

1:09 ‘We are dying here’ says Puerto Rican mayor to Trump administration after Hurricane Maria ‘We are dying here’ says Puerto Rican mayor to Trump administration after Hurricane Maria

Trump’s weekend tweets have shown him to be contemptuous of their complaints of a laggard U.S. response to the natural disaster that has imperiled the island’s future.

“We have done a great job with the almost impossible situation in Puerto Rico. Outside of the Fake News or politically motivated ingrates,” he tweeted on Sunday.

READ MORE: If Donald Trump says you are a ‘good man’, it may be a bad omen

He said “people are now starting to recognize the amazing work” done by the Federal Emergency Management Agency and the military.

And Cruz told This Week on ABC: “”I know the good heart of the American people and I know that when a mayday sound goes off, they come to the rescue.”

Story continues below advertisement

WATCH BELOW: Puerto Rico governor makes impassioned plea: “Forget the fighting”

1:44 Puerto Rico governor makes impassioned plea: “Forget the fighting” Puerto Rico governor makes impassioned plea: “Forget the fighting”

The day before, Trump had tweeted: “Such poor leadership ability by the Mayor of San Juan, and others in Puerto Rico, who are not able to get their workers to help.”

He added: “They want everything to be done for them when it should be a community effort,” Trump wrote from his club.

His critical response was an unusually pointed rebuke from the president in the heat of a disaster — a time when leaders often put aside partisan differences in the name of solidarity. But it was a reminder of Trump’s unrelenting penchant for punching back against critics, whatever the circumstances.

WATCH BELOW: SNL depicts Donald Trump hanging up on Mayor of San Juan, Puerto Rico

5:36 Alec Baldwin’s Donald Trump returns in SNL season debut Alec Baldwin’s Donald Trump returns in SNL season debut

Trump has said he’s doing everything possible to help the “great people of PR!” and has pledged to spare no effort to help the island recover from Maria’s ruinous aftermath. He has also repeatedly applauded his government’s recovery efforts, saying military personnel and first responders have done “an amazing job,” despite the significant logistical challenges.

Story continues below advertisement