Ballots are being prepared ahead of Sunday's European Elections, in Rozzano, near Milan, Italy, Saturday, May 25, 2019. Some 400 million Europeans from 28 countries head to the polls from Thursday to Sunday to choose their representatives at the European Parliament for the next five years. (AP Photo/Antonio Calanni)

PRAGUE (AP) — The European Parliament elections shifted to the Czech Republic, Slovakia, Malta and Latvia on Saturday as voters in those European Union nations took part in a landmark ballot in which resurgent nationalists are challenging traditional parties over the future of Europe.

The stakes for the EU are especially high in this year's vote, which is taking place in all of its 28 nations from Thursday to Sunday. Voters are electing 751 lawmakers, with each nation apportioned a number of seats based on its population, for a legislature that increasingly affects the everyday lives of ordinary Europeans.

Anti-immigrant and far-right groups are hoping to gain ground in the European Parliament and use it to claw back power from the EU for their national governments. Moderate parties, on the other hand, want to cement closer ties among countries in the EU, which was created in the wake of World War II to prevent renewed conflict.

"We stand at a crossroads — that is, whether the EU is going to be stronger and more integrated or, quite the contrary, a process of its weakening is to begin," Zuzana Caputova, Slovakia's president-elect, told reporters after voting in the town of Pezinok.

A Slovak far-right party that openly admires the country's wartime Nazi puppet state could win seats in the European Parliament for the first time. Its members use Nazi salutes, blame the Roma minority for crime, consider NATO a terror group and want the country to leave the western military alliance and the EU.

Polls in Slovakia favor the leftist Smer-Social Democracy party, the senior member of Slovakia's current coalition government, to win the most votes. But the polls also suggest that the far-right People's Party Our Slovakia will win seats in the European legislature for the first time.

In neighboring Czech Republic, a centrist party led by populist Prime Minister Andrej Babis expected to win the most votes, despite the fact that Babis is facing fraud charges involving the use of EU funds. Babis wants his country to remain in the bloc but is calling for EU reforms.

Meanwhile the Czech Republic's most ardent anti-EU group, the Freedom and Direct Democracy party, is predicted to capture its first seats in the EU legislature.

Britain, Ireland and the Netherlands have already voted this week, and the rest of the EU nations will vote Sunday. Official results will only be released Sunday night after all polls close.

The legislature affects Europeans' daily lives in many ways: cutting smartphone roaming charges, imposing safety and health rules for industries ranging from chemicals and energy to autos and food, supporting farming and protecting the environment.

Voting in the Netherlands may have already produced a surprise. An Ipsos exit poll forecast a win for the Dutch Labor Party, and predicted that pro-European parties would win most of the Netherlands' seats instead of right-wing populist opponents.

In Ireland, early vote counts and an exit poll suggest that the Green Party is gaining strength as it challenges three larger parties in both local and European Parliament elections.

In the Irish votes on Friday, an exit poll of more than 3,000 voters showed that Ireland's top two parties — the governing party Fine Gael and the more conservative opposition party Fianna Fail — are running neck and neck, followed by the nationalist Sinn Fein party and the pro-environment Greens. Early vote counts on Saturday in Ireland's local election confirmed these trends.

Vote counting in the European Parliament races will begin Sunday morning.

Overall, the European Parliament's traditional political powerhouses are expected to come out with the most votes. But the center-right European People's Party and the center-left Socialists & Democrats look set to lose some clout and face their strongest challenge yet from an array of populist, nationalist and far-right parties.

Those upstart parties hope to emulate what President Donald Trump did in the 2016 U.S. election and what Brexiteers achieved in the U.K.: to disrupt what they see as an out-of-touch elite and gain power by warning about migrants massing at Europe's borders ready to rob the continent of its jobs and culture.

The traditional parties warn that this strategy is worryingly reminiscent of pre-war tensions, and argue that unity is the best buffer against the challenges posed by a world in which China, the U.S. and Russia are all flexing their economic and military prowess.

___

Raf Casert in Brussels and Angela Charlton in Paris contributed.

___

For more news from The Associated Press on the European Parliament elections go to https://www.apnews.com/EuropeanParliament

List of candidates are placed in a polling station ahead of Sunday's European Elections, in Rozzano, near Milan, Italy, Saturday, May 25, 2019. Some 400 million Europeans from 28 countries head to the polls from Thursday to Sunday to choose their representatives at the European Parliament for the next five years. (AP Photo/Antonio Calanni)
A man walks by an installation encouraging people to vote in the European elections at Luxembourg metro station in Brussels, Friday, May 24, 2019. Some 400 million Europeans from 28 countries will head to the polls May 23-26 to choose lawmakers to represent them at the European Parliament for the next five years. (AP Photo/Virginia Mayo)
People walk by a banner advertising the European elections outside the European Parliament in Brussels, Friday, May 24, 2019. Some 400 million Europeans from 28 countries will head to the polls May 23-26 to choose lawmakers to represent them at the European Parliament for the next five years. (AP Photo/Virginia Mayo)
Flags of the European Union flap in the wind outside the European Parliament in Brussels, Friday, May 24, 2019. Some 400 million Europeans from 28 countries will head to the polls May 23-26 to choose lawmakers to represent them at the European Parliament for the next five years. (AP Photo/Virginia Mayo)
People walk through a passage way at the European Parliament in Brussels, Friday, May 24, 2019. Some 400 million Europeans from 28 countries will head to the polls May 23-26 to choose lawmakers to represent them at the European Parliament for the next five years. (AP Photo/Virginia Mayo)
A man walks in the European Parliament as it is being set up for election night in Brussels, Friday, May 24, 2019. Some 400 million Europeans from 28 countries will head to the polls May 23-26 to choose lawmakers to represent them at the European Parliament for the next five years. (AP Photo/Virginia Mayo)
Slovak President-elect Zuzana Caputova casts her ballot for the European elections in Pezinok, near Bratislava, on Saturday, May 25, 2019. (Vit Simanek/CTK via AP) ** SLOVAKIA OUT **
Romanians wave a large EU flag during a 2020 USR PLUS alliance European Parliament elections rally, in Bucharest, Romania, Friday, May 24, 2019. Romanians will vote on Sunday, May 26, in the European Parliament elections. (AP Photo/Vadim Ghirda)
A worker prepares urns in a voting station for the European, Municipal and local elections in Madrid, Spain, Saturday May 25, 2019. European Elections take place in each EU nation between May 23-26 and in Spain on Sunday May 26. (AP Photo/Paul White)
A worker places voting slips on a table in a voting station for the European elections in Madrid, Spain, Saturday May 25, 2019. European Elections take place in each EU nation between May 23-26 and in Spain on Sunday May 26. (AP Photo/Paul White)
Ballots are counted in the European Parliamentary elections and the referendum on Ireland's divorce laws at the RDS in Dublin, Saturday May 25, 2019. (Niall Carson/PA via AP)
A woman runs her hand through her hair, backdropped by a European Union flag, during a 2020 USR PLUS alliance European Parliament elections rally, in Bucharest, Romania, Friday, May 24, 2019. Romanians will vote on Sunday, May 26, in the European Parliament elections. (AP Photo/Vadim Ghirda)
Manfred Weber, left, leading candidate of the EPP in the 2019 European elections, and German Chancellor Angela Merkel attend the joint closing rally of the EPP, CDU and CSU parties for European elections in Munich, Germany Friday May 24, 2019. (Sven Hoppe/dpa via AP)
Manfred Weber, leading candidate of the EPP in the 2019 European elections, speaks during the closing rally of the EPP, CDU and CSU parties for European elections in Munich, Germany Friday May 24, 2019. (Sven Hoppe/dpa via AP)
Five-Star Movement leader and Italian Deputy-Premier Luigi Di Maio addresses a rally ahead of Sunday's European Elections, in Rome, Friday, May 24, 2019. Some 400 million Europeans from 28 countries head to the polls from Thursday to Sunday to choose their representatives at the European Parliament for the next five years. (AP Photo/Andrew Medichini)
Five-Star Movement leader and Italian Deputy-Premier Luigi Di Maio addresses a rally ahead of Sunday's European Elections, in Rome, Friday, May 24, 2019. Some 400 million Europeans from 28 countries head to the polls from Thursday to Sunday to choose their representatives at the European Parliament for the next five years. (AP Photo/Andrew Medichini)
Manfred Weber, leading candidate of the EPP in the 2019 European elections, speaks during the closing rally of the EPP, CDU and CSU parties for European elections in Munich, Germany Friday May 24, 2019. (Sven Hoppe/dpa via AP)
Manfred Weber, left, leading candidate of the EPP in the 2019 European elections, German Chancellor Angela Merkel, right, and former Polish President Lech Walesa, center, attend the joint closing rally of the EPP, CDU and CSU parties for European elections in Munich, Germany Friday May 24, 2019. (Sven Hoppe/dpa via AP)
Manfred Weber, leading candidate of the EPP in the 2019 European elections, waves after speaking during the closing rally of the EPP, CDU and CSU parties for European elections in Munich, Germany Friday May 24, 2019. (Sven Hoppe/dpa via AP)
Manfred Weber, leading candidate of the EPP in the 2019 European elections, speaks during the closing rally of the EPP, CDU and CSU parties for European elections in Munich, Germany Friday May 24, 2019. (Sven Hoppe/dpa via AP)
Manfred Weber, leading candidate of the EPP in the 2019 European elections, speaks during the closing rally of the EPP, CDU and CSU parties for European elections in Munich, Germany Friday May 24, 2019. (Sven Hoppe/dpa via AP)
Five-Star Movement leader and Italian Deputy-Premier Luigi Di Maio addresses a rally ahead of Sunday's European Elections, in Rome, Friday, May 24, 2019. Some 400 million Europeans from 28 countries head to the polls from Thursday to Sunday to choose their representatives at the European Parliament for the next five years. (AP Photo/Andrew Medichini)
List of candidates are placed in a polling station ahead of Sunday's European Elections, in Rozzano, near Milan, Italy, Saturday, May 25, 2019. Some 400 million Europeans from 28 countries head to the polls from Thursday to Sunday to choose their representatives at the European Parliament for the next five years. (AP Photo/Antonio Calanni)