Angela Merkel’s Christian Democratic Union(CDU) party has faced a setback in state elections over her failed liberal migrant policy.

CDU was defeated by the anti-migrant Alternative for Germany (AfD) party, in two states out of three. The party lost its support in the western state of Baden-Wuerttemberg, scoring a low  27% and in Rhineland-Palatinate. But it was able to gain support from Saxony-Anhalt.

On the other side, AfD was able to secure 15 percent in Baden-Wuerttemberg, 12 percent in Rhineland-Palatinate and stood second with 24% vote in Saxony-Anhalt, reports Yahoo News.

“The people who voted for us voted against this refugee policy,” AfD deputy chairman Alexander Gauland said.

“We have a very clear position on the refugee issue: we do not want to take in any refugees.”

As per the opinion polls, AfD secured support from people who earlier didn’t vote for the party. It also drew support from Merkel’s conservatives, especially in Baden-Wuerttemberg. Its unprecedented win seems to prove that people are turning back from Merkel’s migrant policy, which welcomed over a million refugees last year. She was earlier accused of failing to manage the migrant influx. Since then Merkel has been facing political pressure to fix the migrant influx.

Last year, AfD’s founder Bernd Lucke was outmanoeuvred by 40-year-old chemist Frauke Petry. Petry took its stance on immigrants and criticised Merkel. The party had earlier caused outrage by suggesting police to shoot migrants entering the country.

Earlier this month, an opinion poll revealed that 80% of people thought that “ Merkel’s government has lost control of the refugee crisis”, reported Independent.

“Merkel has gone too far with the refugees, she has bitten off more than we can chew and frankly I fear for Germany’s future,” said Bernd Kassmann, a retired shop owner in his 70s.

“I’m not voting for her again. I may even vote for the AfD. At least, they have a clear view of the refugee problem” he said before the elections.