In the wake of recently circulated videos showing uniformed NYPD officers being drenched with water while on the job, an NYPD union boss is slamming lawmakers and their “criminal protection agenda” for creating a “dangerous environment” for department members citywide.

“Make no mistake, the actions contained in these videos are a direct result of the words and actions of Political leaders and their ‘criminal protection agenda,'” wrote Detectives Endowment Association president Michael Palladino in a strongly worded letter to members late Tuesday. “A fragile and dangerous atmosphere exists in some communities for officers performing their lawful duty.”

“The politicians created it so they must own it and fix it now before it escalates and someone gets injured or killed,” the letter adds.

Palladino criticized lawmakers for their “deafening silence” and urged union members to be cautious, be aware of their surroundings, and take any necessary lawful action.

On Monday, videos circulated of two pairs of cops — one in Harlem and the other in Brooklyn — being doused with water thrown at them by young men, who were later identified by police and include a gang member in his 20s.

Later that day, Chief of Department Terence Monahan vowed to arrest the men responsible for the incidents, which he called “not acceptable to our men and women who are out there.”

He added: “We don’t take that.”