German politicians from three mainstream parties scrambled Monday to recall a far-right district mayor they elected after nobody else volunteered for the job.

Following a public outcry and much hand-wringing by top officials in Berlin, German Chancellor Angela Merkel's center-right Christian Democratic Union and two other parties said they would seek to reverse last week's local council election.

Stefan Jagsch of the far-right National Democratic Party was elected district mayor in the small Hesse town of Altenstadt-Waldsiedlung on Thursday. The post had remained vacant for weeks.

GERMAN 'WHO WANTS TO BE A MILLIONAIRE?' SUPERFAN WINS SHOW AFTER 15 YEARS OF PRACTICE

In this Sunday, Sept. 8, 2019 photo German far right party member Stefan Jagsch stands in front of the community house in the Altenstadt-Waldsiedlung, a part of the village of Altenstadt, near Frankfurt, Germany.  (DPA via AP)

German news agency dpa reported the Christian Democrats, the center-left Social Democrats and the pro-business Free Democrats have eight of the nine local council seats — enough to oust Jagsch with the required two-thirds majority.

Local CDU member Norbert Szielasko, who voted for Jagsch, said the council elected him because "we don't have anybody else, especially nobody young who knows how to use computers and send emails."

CLICK HERE FOR THE FOX NEWS APP

Jagsch's party, known by the acronym NPD, campaigns against immigration and has ties to far-right extremists. Recent attempts to ban the party were rejected by Germany's highest court on the grounds that NPD wasn't a significant political force.