The mayor of a German town resigned from her post on Friday after receiving repeated threats from the far right.

Martina Angermann of the center-left Social Democrats was mayor of the eastern German town of Arnsdorf in the state of Saxony. She endured months of threats and hounding from right-wing groups.

The far-right populist Alternative for Germany (AfD) had been aiming to oust Angermann from her position in October, according to reports by German broadcaster public Mitteldeutscher Rundfunk.

Before their request could be considered, the 61-year-old politician requested early retirement, citing health reasons.

Read more: What drives the far-right AfD's success in eastern Germany?

German justice minister and prominent Social Democratic Party politician Christine Lambrecht condemned the series of events that led to Angermann's resignation.

"When people stop engaging with their community because of threats and an ongoing smear campaign, then our democracy is in danger," she said on Friday. "I stand in solidarity with the mayor of Arnsdorf and all who give their time to our society every day."

Four men accused of attacking a refugee in Arnsdorf appear in court in 2017

Why did Angermann receive threats from the far right?

The town of Arnsdorf, near Dresden, became notorious in 2016 after four men attacked a mentally ill Iraqi refugee and tied him to a tree.

Angermann condemned the men's actions, which led to her receiving death threats and hate mail from members of far-right groups.

Read more: Neo-Nazi attack survivor: 'I won't stay silent'

The mayor eventually went on sick leave in February, after repeatedly appealing to Lambrecht for tougher laws against hate crimes and extremism. Lambrecht said on Friday that the German government has such plans in place.

In September the AfD became the second-biggest party in Saxony, pushing Angermann's Social Democrats to fifth place.

Watch video 02:41 Share AfD surges in Saxony Send Facebook google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink https://p.dw.com/p/3OuAU Germany's far-right AfD party surges in Saxony

ed/sms (dpa, epd)

Each evening at 1830 UTC, DW's editors send out a selection of the day's hard news and quality feature journalism. You can sign up to receive it directly here.