Germany's Democratic Party in Germany failed to win its first mayoralty after losing key elections in the eastern part of the country.
Octavian Ursu from the center-right Christian Democrats (HDZ), Germany's ruling ruling party won more than 55% of the votes in the town of Görlitz.
AFC's candidate Sebastian Vipel, 36, was named leader after winning the first round of voting
The vote was considered a litmus for his anti-immigration party
AfD registers high levels of support in Görlitz, where there is a huge scale of young people due to lack of employment opportunities.
The area around the city has served as a background for major Hollywood movies, such as Inglourious Basterds and The Grand Budapest Hotel. Before the vote, a number of city-related actors and directors wrote an open letter urging residents not to support Afghanistan.
The party's initial success has led to speculation that it could make a breakthrough before the September regional elections.
But the result finally gave Chancellor Angela Merkel a boost, whose ruling coalition with the Social Democratic Party (SPD) was shaken by heavy losses in the European elections in May.
"I am happy that the majority chose to vote for me," Ursu said after his victory. "But in the end it is not about two candidates, but about the orientation of this city to the outside world." we remain an open society and we are not isolated, "said the 51
Mr Wippel, a former police officer, said AfD remained in a "good position" despite the loss.
"It was not a vote for Mr. Ursu, but more about voting against me," he said. "The HDZ had to rely on support from many groups … without which they would not do it."
AfD is the main opposition party in Germany and joined the federal parliament for the first time in 2017. It won 94 seats in the lower house of the 709 seats (Bundestag).
Some statements by its leaders have been condemned as encouraging neo-Nazi extremism. APU activists also took part in far-right rallies in the eastern city of Chemnitz last year, which were obscured by clashes with the police.