WARSAW — Poland’s presidential election, widely viewed as the most important since the end of communist rule in 1989, failed to produce a clear winner Sunday night, although final exit polls showed President Andrzej Duda leading the challenger, Rafal Trzaskowski.

Duda, a conservative nationalist, had 51% of the vote in the exit polls to 49% for Trzaskowski, the liberal mayor of Warsaw, according to the polls, but they are not considered official results, and neither candidate conceded the race. That set the stage for an extended fight over the results of Europe’s first presidential election since the coronavirus swept across the continent.

The pandemic forced the government to reluctantly move the date of the election from May, giving time for Trzaskowski to enter the race. In the first round in June, no candidate emerged with more than 50% of the vote, setting up a runoff between the top two finishers.

Over the last two weeks, an already bitter contest turned even darker, as Duda’s campaign leaned heavily on stoking fear of gay people and the free press, and began making arguments tinged with anti-Semitism.

The government has until Tuesday night to declare a winner. A close race will involve counting both in-person and mail-in votes, as well as record numbers of voters registered abroad. The turnout appears to have been the highest since the first, partially free elections were held in the country in 1989.

Despite the uncertainty, Duda rushed to claim victory.

“It is a privilege to have won with a 70% turnout,” he said to supporters in the town of Pultusk, about 40 miles from Warsaw.

Advertising

But even as he spoke, Polish television was showing people still in line to vote in several locations.

Trzaskowski sounded equally confident that he would emerge the winner.

“We said it would be close, and it is close,” he told supporters in Warsaw. “But I am absolutely convinced that we are going to win. It is just about counting the votes. I am sure that when we count the votes one by one, we will win for sure.”

Duda’s reelection would ensure that the governing Law and Justice party, which also controls parliament, would be able to continue to reshape the nation in ways that critics contend undermine open political debate and the rule of law. The government has corralled independent courts and media, clashing with the European Union, which has accused Poland of damaging democratic values and institutions.

Trzaskowski had cast the election as a fight for the soul of the nation, to end a government that uses state media for propaganda, silences opposing voices, uses fear and division to build support and antagonizes Europe. He said he wanted to live in a country where “an open hand wins against a clenched fist.”

Last week, the government accused Germany of fomenting discord through media outlets widely viewed as independent but owned by German companies. Duda’s allies even accused Trzaskowski of supporting pedophilia and suggested that Trzaskowski would be controlled by Jewish interests — a fraught topic in a country that was at the epicenter of the Holocaust.

Jaroslaw Kaczynski, chairman of Law and Justice and the most powerful politician in Poland, accused Trzaskowski of not having a “Polish soul” or “Polish heart,” for saying that restitution of Jewish property lost during World War II was up for discussion.

Advertising

“All of us in Poland have Polish hearts and Polish souls, and we will not allow ourselves to be divided,” Trzaskowski said in response, adding that Duda needed to divide Poles to secure support.

“We will not allow ourselves to be attacked, and we will say it loud and clear,” he said. “We’ve had enough of hatred.”

The main target of Duda’s campaign has been the LGBT community, the focus of attacks by leading government figures for more than a year. Last week, Duda signed a draft amendment to the constitution that would explicitly ban gay adoption, justifying it with the “well-being and security” of children.

Kaczynski has called the gay rights movement a foreign import that threatens the nation’s identity. In conservative areas, town councils have been declaring their municipalities “LGBT free.”

As mayor of Warsaw, Trzaskowski pushed back.

He issued a rights declaration setting out the city’s commitment to try to help find shelter for gay youths rejected by their parents. He also promised to incorporate World Health Organization guidelines on sex and tolerance education into Warsaw’s school system.

Last year, when Pride marchers faced violence from far-right groups across the country, he joined a parade in Warsaw.

Advertising

Trzaskowski has vowed to keep generous social programs created by Law and Justice, making them a less potent campaign issue.

Instead, the contest was fought over cultural issues and Poland’s place both in Europe and the world.

Trzaskowski has promised to repair the rifts with the European Union, whereas Duda has touted his close relationship with the Trump administration while attacking the bloc.

The incumbent received a boost recently from President Donald Trump, who met with him at the White House and all but endorsed Duda, saying: “He’s doing a terrific job. The people of Poland think the world of him.”