
A group of protesters attacked Donald Trump supporters who were leaving the candidate's rally in San Jose on Thursday night.

A dozen or more people were punched and knocked to the ground by protesters during the melee, as anti-Trump demonstrators grabbed the candidate's signature hats from off of the heads of his supporters in order to set them on fire.

And at one point, a mostly male mob that was five to six people deep even surrounded a female Trump supporter and began to pelt the defenseless woman in the face with eggs and watermelon.

That woman, who was wearing a 'Trump' jersey, responded by smiling and pointing right back at the group as they screamed and waved Mexican flags, before eventually making her escape thanks to a nearby door.

Many of the protesters carried the Mexican flag during the demonstration, which was eventually diffused once local police made the decision to move in and make some arrests.

A few of the demonstrators also burned an American flag outside the convention center.

Scroll down for videos

A man is seen punching who he believes is a Donald Trump fan outside his rally in San Jose, California. He later discovered he was actually a fellow protester

A woman wearing a Trump shirt is pelted with eggs and pinned in against a door after leaving a rally in San Jose

The supporter is left rubbing raw egg from her eyes and hair after being attacked by Trump protesters

A Trump supporter collides with another man after leaving the rally in San Jose, California, as ugly scenes erupted in the surrounding area

The man reacted after a woman sneaked up behind him and stole his Trump hat from his head

A woman is knocked over as she walks towards a police line outside the Trump rally in California

She lies on the ground after falling during the demonstration against the presumptive Republican U.S. presidential nominee

Watch: The moment a Trump supporter, surrounded by protesters, is egged in the face, hit by other food. pic.twitter.com/qYFdwJWvrS — Jacob Rascon (@Jacobnbc) June 3, 2016

This latest protest came just hours after Trump slammed a judge presiding over a case involving Trump University, saying he should be recused from making a decision in the legal matter because of his Mexican heritage.

Trump said that U.S. District Judge Gonzalo Curiel has 'an inherent conflict of interest' because of his plans to build a border wall between Mexico and the United States should he be elected president.

Curiel was born in Indiana, and appointed to the bench by President Obama in 2011 after a lengthy career working as both a federal prosecutor and judge in the California state judicial system.

San Jose Police Seargent Enrique Garcia told NBC News that several protesters were arrested during the fracas and one officer was assaulted.

Police waited until about 90 minutes after the rally had ended to begin moving into the remaining crowd and try and disperse those who were showing no signs of going home.

This immediately sparked clashes between demonstrators and police, and it is not clear if any of those anti-Trump supporters were injured during the scuffle.

The rowdy and angry crowd of around 300 protesters had thinned significantly by that time, but those who remained on the scene managed to fill an entire city block right by the San Jose Convention Center.

Some banged on the cars of Trump supporters as they left the rally and others chased after those on foot to frighten them and try and grab their hats.

Police kept their distance from the crowd as things initially began to play out, but did step in to stop protesters from advancing any further once they neared the convention center.

Anti-Trump protesters set about a supporter of the Republican candidate in a street outside the rally

An altercation between the two rivals begins and the man in the white shirt ends up being punched in the face

The man is sparked out by the punch and ends up lying face down on the floor as two officers come to help

The police officers on motorbikes go to the aid of the punched man and help him on to his feet

'Our police officers have done an extremely courageous and professional job so far,' San Jose Mayor Sam Liccardo said after the eventful evening.

'We're all still holding our breath to see the outcome of this dangerous and explosive situation.'

The mayor, a Democrat and Hillary Clinton supporter, criticized Trump for coming to cities and igniting problems that local police departments had to deal with.

Lan Hoang, one of the Trump supporters who had his hat stolen during the demonstration and set on fire, spoke about how upset he was on Thursday night.

'It was unbelievable. I've never seen anything like that in America before,' Hoang told NBC Bay Area, adding that he saw 'a lot' of Trump supporters getting attacked outside the venue.

Clinton campaign chair John Podesta also condoned the events of the evening, saying that 'violence against supporters of any candidate has no place in this election.'

One of Trump's trademark hats was set alight on the ground by a group of angry protesters

One of the angry mob stomps on a burning Trump hat surrounded by people carrying Mexican flags

Inside the convention center, the presumptive GOP nominee spoke for about 50 minutes at the rally, sniping at Democratic candidate Hillary Clinton and calling her speech on foreign policy earlier in the day 'pathetic' and 'sad to watch.'

Protesters before the speech included Adam Rivas, a 22-year-old community college student who was born and raised in San Jose, who held a spray-painted sign that read 'Dump Trump.'

Rivas said he was particularly disturbed by Trump's remarks about Mexicans.

'For any one Mexican here he bashes, there are about 20 Mexicans out there who are hard-working and just doing their job,' he said.

Protesters climb on to the roof of a car outside the Trump campaign rally in San Jose. It's not known whether anyone was inside at the time

Another anti-Trump demonstrator kicks a car as it leaves a parking garage near the venue

Heavily-armed police were forced to push back some angry members of the crowd as they waved placards

Police officers were forced to form a line to contain the protesters outside the rally in San Jose, California

A Trump protester holds his hands up in the air as he tells a police officer how he has been harassed by demonstrators

Trump supporter Debbie Tracey, a U.S. Navy veteran from San Jose, said she came to hear the presidential hopeful speak and left the rally with two hats, a T-shirt and a handful of signs that said 'Veterans for Trump.'

Passing in front of a wall of protesters, many chanting in Spanish, she said she supported Trump's call for a wall along the U.S.-Mexico border.

'I'll go help build the wall because if you are going to come to this country, land of opportunity, you should be here legally,' she added.

Trump seemingly ignored what was going on an applauded as he addressed the crowd

Donald Trump waves to the crowd as he is surrounded by Secret Service agents after a rally, just before the violence outside the venue began