Germany’s far-right party has pledged to fight an “invasion of foreigners” with its new MPs, after it won enough votes to enter the Bundestag for the first time in yesterday’s election.

Speaking in Berlin the morning after the election results, lead candidate Alexander Gauland said his party would “uncompromisingly address” immigration, on which it has campaigned relentlessly since the refugee crisis began.

But the party’s first day with representation was already plagued by infighting, after co-chair and nearly elected MP Frauke Petry quit after months of squabbles below the surface.

“One million people – foreigners – being brought into this country are taking away a piece of this country and we as AfD don’t want that,” Mr Gauland told the press conference.

“We say we don’t want to lose Germany to an invasion of foreigners from a different culture. Very simple.”

The AfD is expected to take 94 seats in the 709 member Bundestag, making it the third largest party; it won 12.6 per cent of the vote.

Pollsters and political analysts in Berlin warned against allowing the far-right outfit – which says Islam is “not a part of Germany” and routinely demonises foreigners – to hog the spotlight.

“Of course we have to stand up against their views, but if the media all focus on the AfD, exclusively pushing them into the Nazi corner, then it creates a certain effect: everyone who sympathises with the AfD in a more general way is also being pushed into that corner, and they feel treated in an unjust manner,” Matthias Jung of pollsters Forschungsgruppe Wahlen told reporters in Berlin.

“Amongst the voters who support the AfD, you don’t have a coherent radical right ideology: they are dissatisfied with things that happened, but not necessarily just the refugee crisis.

He argued that this approach “won’t do justice the various motives of voters who support the AfD”.

Dr Peter Matuschek, of pollsters Forsa, said the AfD deliberately attracted media attention by making provocative statements.

“They pursued an agenda of targeted provocation, as did President Trump,” he said.

“Once a provocative statement was made, a politician could rely on being quoted in the media the day after.”

He said that this approach “in a way reactivated” the immigration and refugee crisis as an issue during the election campaign, despite the fact that it was mostly out of the news in months leading up to the election.

Frauke Petry, co-chair of AfD, quit the party the morning after the election results (Getty) (Bongarts/Getty Images)

In a shock move at Monday morning’s press conference, Ms Petry (one of the co-chairs of the party) told reporters in Berlin she would not sit in the party’s group in the Bundestag, effectively making her an independent MP.

“I decided after careful reflection that I will not sit with the (AfD) parliamentary group,” she said, before abruptly leaving the room.

The surprise move shocked Ms Petry’s AfD colleagues, and other politicians present indicated that they were not expecting it.

German election 2017 Show all 14 1 /14 German election 2017 German election 2017 German Chancellor Angela Merkel (R) poses for a selfie with a boy before addressing an election campaign rally of the Christian Democratic Union (CDU) in Kappeln Odd Andersen/AFP German election 2017 German Social Democrat (SPD) and chancellor candidate Martin Schulz speaks during an election campaign stop on September 20, 2017 in Gelsenkirchen. Schulz trails Chancellor and Christian Democrat (CDU) Angela Merkel by double digits Sascha Schuermann/Getty Images German election 2017 Sahra Wagenknecht, top candidate of the left-wing Die Linke party for upcoming general elections, gives a speech during a session at the Bundestag (lower house of parliament) in Berlin on September 5 John MacDougall/AFP German election 2017 Top candidate for the Greens for the 2017 German federal elections, Cem Ozdemir, speaks during an election campaign rally of the Alliance '90/Greens in Stuttgart, southern Germany on September 20, 2017, during the final days before Germans head to the polls Thomas Kienzle/AFP German election 2017 Leader of the Free Democrats (FDP) and main candidate in the upcoming parliamentary elections, Christian Lindner gives a speech during the party congress in Berlin on September 17 Odd Andersen/AFP German election 2017 Alice Weidel and Alexander Gauland, co-lead candidates of the right-wing, populist Alternative for Germany (AfD) political party, speaking to the media on Islam, immigration and crime next to an AfD poster that reads: 'Crime Through Immigration, The Refugee Wave Leaves Behind Clues!' on September 18, in Berlin Tobias Schwarz/AFP German election 2017 People listen to German Chancellor and Christian Democrat (CDU) Angela Merkel speak at an election campaign stop on September 19, 2017 in Schwerin Getty German election 2017 Refugees from Syria prior to the arrival of German Chancellor and Christian Democrat (CDU) Angela Merkel at an election campaign stop on September 19, 2017 in Schwerin Sean Gallup/Getty Images German election 2017 The audience cheers whilst listening to German Social Democrat (SPD) and chancellor candidate Martin Schulz speaking during an election campaign stop on September 14 in Munich Joerg Koch/Getty Images German election 2017 German Chancellor Angela Merkel holds up a tomato as she addresses an election campaign rally of the Christian Democratic Union (CDU) in Lingen on September 13 AFP/Getty Images German election 2017 Alexander Gauland, top candidate of Germany's anti-Islam, anti-immigration AfD (Alternative fuer Deutschland) party for upcoming general elections, walks past supporters as he attends an election campaign event in Nuremberg Daniel Karmann/AFP German election 2017 British politician and former UKIP leader Nigel Farage speaks at an event held by the German right-wing, populist Alternative for Germany (AfD) political party as AfD leading member Beatrix von Storch looks on on September 8, 2017 in Berlin Sean Gallup/Getty Images German election 2017 Martin Schulz (C), chancellor candidate of the German Social Democrats (SPD), looks on in a fest tent at the Gillamoos amusement fair on September 4, 2017 in Abensberg, Germany. Politicians, among them elections candidates, from Germany's major political parties are attending the fair today in what is an an annual tradition Johannes Simon/Getty Images German election 2017 An Alternative for Germany (AfD) campaign poster is vandalised in Berlin. Germans go to the polls on September 24th, with the AfD widely expected to garner enough votes to enter the federal parliament. Campaign poster reads: 'New Germans? we'll make them ourselves.' AFP

She has previously been embroiled in power struggles with other members of the party, most notably over whether she should be its designated “lead candidate” in the election. She lost out in that race to Alexander Gauland, the group’s most prominent face in the media.

Ms Petry had also publicly criticised Mr Gauland for various controversial statements he made on the campaign trail, including claims that Germany should be proud of its soldiers in the Second World War – a taboo in the country. Mr Gauland said after Ms Petry’s departure that he did not think his statements were responsible for her decision.

Angela Merkel will remain Germany’s Chancellor, but her CDU party achieved its worst result in around 70 years, while its former coalition partners, the centre-left SPD, also hit rock-bottom. Ms Merkels’s CDU won 33 per cent, the SPD 20.5 per cent, the liberal FDP 10.7, the left-wing Die Linke 9.2 per cent and the Greens 8.9 per cent.