When neo-Nazis planned a festival in a small German town, residents decided to take matters into their own hands.

The eastern German town of Ostritz in Saxony, on the German-Polish border, was the site of the "Shield and Sword Festival" for right-wing extremists Friday and Saturday, Deutsche Welle reported.

The news agency confirmed that police were ordered to confiscate alcohol from the festival’s attendees to deter violence.

However, according to Deutsche Presse-Agentur, locals took it a step further by buying up over 100 crates of beer at nearby supermarkets to prevent festival attendees from buying more alcohol.

Behind bars:Neo-Nazi teen who threatened Prince Harry jailed for online 'terrorist' posts

In addition to drying out the town, 300 people peacefully marched through the streets, DPA also reported.

Although 750 people were registered for the event, police told Deutsche Welle only about 600 attended. By midnight Saturday, fewer than 500 attendees were left.

Authorities confiscated more than 1,100 gallons of alcohol from attendees Friday and another 50 gallons on Saturday, DPA reported.

Michael Kretschmer, Saxony’s state premier, told the news agency that he was impressed with how locals stood up for themselves and made it clear to right-wing extremists that they weren’t welcome.

According to Deutsche Welle, residents also planned a counterprotest to take place next to the festival, but officials prohibited the demonstration, citing safety concerns.