Three men, including one known gang member, are in custody after New York City officers on patrol were doused with water over the weekend.

Shocking footage emerged of groups of young people dumping water on the police officers in two separate incidents in Brooklyn and Harlem.

In one of the videos, officers in Harlem on Sunday are seen handcuffing a man at a vehicle while about five other men gather around them.

The men toss water from buckets on the arresting officers. At one point, a shirtless man behind the officers throws an empty red bucket. The crowd behind can be heard laughing and cheering as it hits one of the officers in the head.

On Tuesday, police issued images of three men wanted for 'assaulting' officers in Harlem by dousing them in water as they made an arrest on Sunday

Meanwhile in Brooklyn, several teens were seen soaking two other officers with water.

During the incident, one male teen is seen throwing the bucket of water on one of the cops as they walk.

It's unclear if the officers were looking for someone when the incident happened as they continue walking toward a store. As they walk, another teen kid runs up behind the second officer and dumps the bucket on his head.

Both officers appear to be drenched as they calmly walked back to their patrol car.

In one of the videos, officers in Harlem on Sunday are seen handcuffing a man at a vehicle while about five other men gather around them. They are then doused in water

The two officers continue to arrest the man even as one of them is struck in the back of the head by a red bucket Harlem

When they cross the street, a young man runs up and pours an entire bucket of water on one officer.

Behind the camera, a woman can be heard laughing and saying, 'Oh [the police] came over to talk to them and they violated, they violated them.'

The NYPD issued a release, saying the officer who was hit with the bucket 'suffered pain and swelling to the back of his head'.

On Wednesday, police gave an update, saying a 28-year-old 'known gang member' is under arrest over the Brooklyn incident.

Two men are in custody regarding the Harlem case, with police saying a woman also had water thrown on her and she has spoken to them.

NYPD Chief Terence Monahan questioned whether cops who walked away after being attacked by members of the public are in the right job on Tuesday

NYPD Chief Terence Monahan claimed attacks on police officers are reprehensible after footage showed two officers being doused in water as they made an arrest on Sunday

Police issued images of three men wanted in connection with the Harlem incident on Sunday. They have already arrested two men related to the case and have made one arrest in the Brooklyn incident

They issued images of three men connected to the Harlem footage and asked for the public's assistance in identifying them.

It remains unclear whether any of the men arrested are the same men seen in the police images.

The videos prompted widespread outrage on social media, with officials including Vice President Mike Pence condemning the actions of the individuals involved.

He tweeted on Tuesday: 'This conduct is disgraceful. President @realDonaldTrump and I will ALWAYS stand with the brave men & women of our law enforcement who serve on the thin blue line everyday.'

Some officials appeared to question how the officers responded and claimed they should have not have ignored the behavior by walking away.

Former New York City Mayor Rudy Giuliani, (left), criticized current Mayor Bill de Blasio, (right), claiming incidents happen when there is 'knee-jerk disrespect' for police

In a memo, the NYPD instructed officers to make an arrest if something like that ever happens again, CNN reported.

The issue was raised by NYPD Chief Terence Monahan at an awards ceremony on Tuesday morning ,and he questioned whether cops 'should walk away from something like that', according to CNN.

He claimed: 'As they're making that arrest, there are a couple of guys who thought it was all right to throw water and a bucket at the cops,' he said. 'Well, that ain't all right.

'Any cop who thinks that that's all right, that they can walk away from something like that, maybe should reconsider whether or not this is the profession for them,' he said as the crowd clapped. 'We don't take that.'

On Monday evening, Former New York Mayor Rudy Giuliani branded attacks on officers 'completely unacceptable.'

In Brooklyn, several teens were seen soaking two officers with water. It's unclear if the officers were looking for someone when the incident happened (right)

As they were walking in another direction, one male teen is seen throwing a bucket of water over one of the cops

'The NYPD kept New Yorkers safe through the heatwave and last night's outages,' he wrote. 'We won't tolerate this kind of disrespect.'

He then took a swipe at current Mayor Bill De Blasio, saying: 'This disrespect for the uniform in NYC is result of a Democrat-Progressive (Retrogressive)-Socialist Mayor.

'This is what happens with knee-jerk disrespect for police. It will only get worse until these Left wing idiots are defeated.'

De Blasio soon fired back and said that crime rates have never been lower in New York City. He countered: 'When you disrespect our NYPD officers, you disrespect ALL New Yorkers. We don't tolerate that in our city.

'The truth is crime's NEVER been lower in New York City and that's because we're bridging the divide between police and communities — a divide @RudyGiuliani helped create.'

NYPD Commissioner James P. O'Neill commended the officers involved for their composure.

He tweeted: 'NYPD police officers courageously face unknown & sometimes hostile circumstances each time they answer a call.

'Still, professional & composed, they carry out their vital work. As a city & a PD, we’ll never accept such disrespect.'