President Trump waded into the slew of recent water-bucket attacks on NYPD cops, slamming Mayor Bill de Blasio on Thursday for letting the lawlessness unfold on his watch.

“We love our Law Enforcement Officers all around this great Country. What took place in NYC with water being tossed on NYPD officers was a total disgrace,” tweeted Trump. “It is time for @NYCMayor @BilldeBlasio to STAND UP for those who protect our lives and serve us all so well …”

In another tweet, Trump added, “… What took place was completely unacceptable, and will not be tolerated. Bill de Blasio should act immediately!”

Hizzoner was swift to fire back in an unrelated Brooklyn press briefing.

“First of all, the moment I heard about that incident I condemned it and I made very clear — and I want to make it clear here — anybody who interferes with the work of a police officer is going to be charged and is going to suffer the consequences,” said de Blasio. “It’s illegal, it’s inappropriate, it’s unacceptable.

“Now, to the president: The president knows nothing about New York City,” said de Blasio of Trump, a New York native. “This is a guy who wanted to go back to stop-and-frisk, which was a horrible failure.”

De Blasio then panned Trump as being out of touch with the realities of city life.

“This is a guy who literally does not even understand the place he came from,” said de Blasio. “He didn’t live the life of everyday New Yorkers. He was the child of a millionaire.”

Thursday’s public spat was neither the first time de Blasio has had to defend himself over the water-bucket ambushes nor the first time the White House has weighed in on the brazen attacks.

On Tuesday, Vice President Mike Pence called the conduct “disgraceful” as he tweeted a Post story on the NYPD’s chief of department vowing arrests for the disturbing incidents.