Germany's right wing Alternative for Germany (AfD) party is expected to win its first election since the party was formed in 2013, as anti-mass immigration sentiment sends voters to the polls.

Exit polls on Sunday showed AfD securing a winning 33.5% share of the vote in Thuringia and 31.5% in Saxony. Meanwhile, the center-left Social Democratic Party – to which Chancellor Olaf Scholz belongs – brought in less than 8% of the vote in both states, according to the Wall Street Journal.

The election follows a wider trend of success for conservative groups across Europe in recent months. French Prime Minister Emmanuel Macron's government narrowly quashed a conservative takeover of the French parliament earlier this year.

Analysts say the ultimate impact that AfD and other party politicians can have will be determined by how willing centrists are to work with them.

GERMAN RIGHT WING CANDIDATE STABBED IN LATEST ATTACK AHEAD OF ELECTIONS

DRESDEN, GERMANY - AUGUST 29: A skinhead supporter of the far-right Alternative for Germany (AfD) political party waves a German flag while taunting leftist, anti-fascist protesters following the final AfD Saxony election rally prior to state elections on August 29, 2024, in Dresden, Germany. The AfD is currently leading in polls in both Saxony and Thuringia ahead of state elections scheduled for Sunday in both states. (Photo by Sean Gallup/Getty Images)

DRESDEN, GERMANY - AUGUST 29: A skinhead supporter of the far-right Alternative for Germany (AfD) political party waves a German flag while taunting leftist, anti-fascist protesters following the final AfD Saxony election rally prior to state elections on August 29, 2024, in Dresden, Germany. The AfD is currently leading in polls in both Saxony and Thuringia ahead of state elections scheduled for Sunday in both states. (Photo by Sean Gallup/Getty Images)

"The center-right will decide to what extent an AfD win would be a turning point: So far, they have been relatively consistent in excluding cooperation — more so than in other Western European countries," Manès Weisskircher, a political scientist at the Dresden University of Technology, told the Journal.

The German elections this weekend come just days after a Syrian immigrant killed three people in a stabbing spree in Solingen, Germany. ISIS claimed responsibility for the terrorist attack shortly after.

Emergency services and police at a stabbing scene in Germany Friday

Emergency services and police are deployed near the scene where three people were killed and injured in an attack at a festival in Solingen, western Germany, the German dpa news agency reported, Friday, Aug. 23, 2024.  (Gianni Gattus/dpa via AP)

Federal prosecutors in Germany identified the suspect as Issa Al H., omitting his family name because of German privacy laws.

GERMAN TERROR ATTACK SUSPECT IDENTIFIED AS A SYRIAN REFUGEE, CHANCELLOR VOWS TO IMPLEMENT STRICT IMMIGRATION

ISIS said the attacker targeted Christians "to avenge Muslims in Palestine and everywhere."

Der Spiegel magazine, citing unidentified security sources, said that the suspect had moved to Germany late in 2022, and sought asylum.

Scholz gives speech in Berlin

German Chancellor Olaf Scholz is facing a surge in right-wing sentiment across Germany. (John MacDougall/AFP via Getty Images)

Similar attacks by Muslim migrants across Europe have spurred anti-immigration sentiment. Even the left-leaning Scholz called for strengthening immigration laws and ramping up deportations in the wake of the attack.

CLICK HERE TO GET THE FOX NEWS APP 

"We will have to do everything we can to ensure that those who cannot and are not allowed to stay in Germany are repatriated and deported," Scholz said while visiting the sight where the stabbing happened.

"This was terrorism, terrorism against us all," he said.

Fox News' Sarah Rumpf-Whitten contributed to this report