CNN  — 

President Recep Tayyip Erdogan has won Turkey’s presidential election, defeating opposition leader Kemal Kilicdaroglu in Sunday’s runoff vote and stretching his rule into a third decade.

With 99.43% of the votes counted, preliminary official results announced by Turkey’s Supreme Election Council (YSK) on Sunday showed Erdogan winning with 52.14% of the votes. Kilicdaroglu received 47.86%.

Speaking to thousands of his supporters outside the presidential complex in Ankara, Erdogan said that now was the time to “put aside all the debates and conflicts regarding the election period and unite around our national goals and dreams.”

“We are not the only winners, the winner is Turkey. The winner is all parts of our society, our democracy is the winner,” Erdogan said.

Erdogan said among the government’s main priorities would be fighting inflation and healing the wounds from a catastrophic earthquake on February 6 which claimed more than 50,000 lives in Turkey and neighboring Syria.

Speaking at his party headquarters in the capital Ankara, Kilicdaroglu said he would continue to fight until there is “real democracy” in Turkey.

“This was the most unfair election period in our history… We did not bow down to the climate of fear,” he said. “In this election, the will of the people to change an authoritarian government became clear despite all the pressures.”

Kilicdaroglu said what “truly makes me sad is the hard days ahead for our country.”

View this interactive content on CNN.com

Foreign leaders including those of Russia, Qatar, Libya, Algeria, Hungary, Iran and the Palestinian Authority were among the first to congratulate Erdogan.

In remarks published on the Kremlin’s website, Russian President Vladimir Putin said the election provided “clear evidence of the Turkish people’s support” for Erdogan’s efforts “to strengthen state sovereignty and pursue an independent foreign policy.”

US President Joe Biden also congratulated Erdogan, tweeting that he looked forward to working together “as NATO allies” on “bilateral issues and shared global challenges.”

Erdogan’s supporters gathered In Istanbul’s Taksim Square, chanting his name and “God is great.”

Hundreds gathered outside the Istanbul headquarters of the ruling Justice and Development (AK) Party after preliminary results showed Erdogan in the lead. Some came with children while others waved flags, honked car horns and set off flares and fireworks.

Speaking outside party headquarters amid the celebrations, Erdogan supporter Denel Anart said: “I hope he lives forever.”

“He is my father, grandfather, uncle. He is my everything,” Anart said.

Lorenz Huber/CNN
Sehat Pak said Muslims should rejoice following Erdogan's victory.

Others struck a more religious note.

“Muslims should rejoice. The whole world will know Muslims more,” said Sehat Pak, 33. “The Islamic world should rejoice.”

But Mehmet Karli, adviser to Kilicdaroglu, called Erdogan’s election win a “pyrrhic victory” accusing the president of fueling tensions during the election.

“It does appear that President Erdogan has won these elections. But it would be a mistake to call this a victory. Perhaps a pyrrhic victory is a better term to describe this situation,” Karli said.

Adem Altan/AFP/Getty images
Turkish President Recep Tayyip Erdogan arrives at a news conference in Ankara in 2020.
Esaias Baitel/Gamma-Rapho/Getty Images
Erdogan, as mayor of Istanbul, addresses a crowd at a rally in 1995. He was the city's mayor from 1994 to 1998.
Stringer/Reuters
Erdogan waves to supporters after Friday prayers at the Mehmet Zahit Kotku Mosque in Ankara in November 2002. Erdogan's Justice and Development Party won the majority of seats in Turkey's parliamentary elections that month, and he would become prime minister in March 2003.
Peter Macdiarmid/Getty Images
Erdogan is surrounded by journalists outside 10 Downing Street in London in November 2002. Erdogan had been attending talks with British Prime Minister Tony Blair.
Anatolia/Pool/AP
Erdogan embraces Italian Prime Minister Silvio Berlusconi, who was one of the VIPs at the wedding of Erdogan's son Necmettin and daughter-in-law Reyyan in August 2003. Erdogan has two sons and two daughters.
Anthony Devlin/PA/Getty Images
Britain's Queen Elizabeth II watches Erdogan kick a football during a royal garden party at the British Embassy in Ankara in 2008. It was the final day of the Queen's state visit to Turkey.
John Moore/Getty Images
Erdogan and his wife, Emine, greet US President Barack Obama and first lady Michelle Obama at the G-20 Summit in Pittsburgh in 2009.
Chris Ratcliffe/Bloomberg/Getty Images
Erdogan prepares for a television interview in London in March 2011.
Kayhan Ozer/Anadolu Agency/Getty Images
Erdogan is welcomed to Qatar by Prime Minister Abdullah bin Nasser bin Khalifa Al Thani in 2013.
Dilek Mermer/Anadolu Agency/Getty Images
Erdogan attends a parliamentary group meeting of the Justice and Development Party in May 2014. A few months later, he was elected president in Turkey's first-ever direct elections.
Kayhan Ozer/Anadolu Agency/Getty Images
Erdogan rides a bicycle during the launch of the 51st Presidential Cycling Tour of Turkey in April 2015.
Yasin Bulbul/Presidency/Anadolu Agency/Getty Images
Erdogan greets a child at the Presidential Palace as part of a children's festival in Ankara in April 2015.
Wang Zhao/AFP/Getty Images
Erdogan and Chinese President Xi Jinping inspect honor guards during a welcome ceremony outside the Great Hall of the People in Beijing in July 2015.
Murat Cetinmuhurdar/Turkish Presidency/Anadolu Agency/Getty Images
Erdogan breaks his Ramadan fast with soldiers he was visiting in Mardin, Turkey, in June 2016.
Drew Angerer/Getty Images
Erdogan addresses the UN General Assembly in New York in September 2016.
Michael Reynolds/Pool/Getty Images
Erdogan meets with US President Donald Trump in the White House Oval Office in May 2017.
Adem Altan/AFP/Getty Images
Erdogan gives a speech at Turkey's Grand National Assembly in December 2017.
Maurix/Gamma-Rapho/Getty Images
Erdogan and his wife, Emine, visit Pope Francis at the Vatican in February 2018.
Chris McGrath/Getty Images
The Erdogans wave to supporters in Istanbul after voting in elections in June 2018. Erdogan won his second term as president.
Ozan Kose/AFP/Getty Images
From left, German Chancellor Angela Merkel, Russian President Vladimir Putin, Erdogan and French President Emmanuel Macron take part in a summit in Istanbul that was called in October 2018 to find a lasting political solution to the civil war in Syria.
Moe Zoyari/Bloomberg/Getty Images
Pigeons take flight in front of a mural of Erdogan in Bursa, Turkey, in January 2022.
Susan Walsh/Pool/Reuters
Erdogan talks with US President Joe Biden, center, and British Prime Minister Boris Johnson, right, at a NATO summit in Madrid in June 2022.
Chris McGrath/Getty Images
Erdogan speaks to supporters at the presidential palace after winning reelection in a runoff vote in May 2023.

Erdogan’s victory over Kilicdaroglu, a 74-year-old bureaucrat and leader of the left-leaning CHP, leaves Turkey a deeply divided nation.

“This is not a crushing defeat for those who wanted change,” Asli Aydintasbas, a visiting fellow at Brookings Institution, told CNN’s Becky Anderson. “We are once again looking at a divided country … both camps want entirely different things for Turkey.”

In the first round of voting on May 14, Erdogan secured a nearly five-point lead over Kilicdaroglu but fell short of the 50% threshold needed to win. 

The president’s parliamentary bloc won a majority of seats in the parliamentary race on the same day. 

Riza Ozel/AP
Opposition candidate Kemal Kilicdaroglu cast his vote at a polling station in Ankara.

Electoral authorities said earlier that voting was passing “without any issues.”

Last week, third-place candidate Sinan Ogan, who won 5% of the first-round vote, publicly endorsed Erdogan, further boosting the strongman leader’s chances of winning Sunday’s second and final presidential round. 

Many polls had incorrectly predicted that Kilicdaroglu would lead in the May 14 vote, which saw a high turnout of nearly 90% across the country. 

Six opposition groups had formed an unprecedented unified bloc behind Kilicdaroglu to try to wrest power from Erdogan.

The opposition had described the election as a last stand for Turkish democracy, accusing Erdogan of hollowing out the country’s democratic institutions during his 20-year rule, eroding the power of the judiciary and repressing dissent.

Erdogan also faces headwinds from a floundering economy and a shambolic initial response to the February earthquake.

The government acknowledged its “mistakes” in its rescue operation and apologized to the public. 

Erdogan’s critics also spotlighted loose construction standards presided over by the ruling AK party, which turbocharged a construction boom since the early 2000s, and exacerbated the death toll. They also argued that the earthquake response underscored Erdogan’s alleged hollowing out of government entities in his bid to consolidate power. 

The country’s financial crisis – which saw the currency plummet and prices soar – is also partially blamed on Erdogan’s policies. The president suppressed interest rates leaving inflation unfettered, critics argued.  

Yves Herman/Reuters
Erdogan won the first round but fell short of the margin needed to avoid a runoff.

In an interview with CNN’s Anderson last week, Erdogan vowed to double down on his unorthodox economic policies, arguing that interest rates and inflation were “positively correlated.”

He also hailed his relationship with Russia’s President Putin as “special” and said he would continue to block Sweden’s access to NATO, despite Western criticism that he was obstructing a unified front against Moscow’s invasion of Ukraine. 

Erdogan, who controls the second-largest army in NATO, accused Sweden of harboring Kurdish terror groups and has preconditioned Stockholm’s accession on the extradition of wanted individuals. Sweden has refused Turkey’s repeated requests to extradite individuals Ankara describes as terrorists, arguing that the issue can only be decided by Swedish courts.

Sweden’s Prime Minister Ulf Kristersson congratulated Erdogan for his victory. “Our common security is a future priority,” he tweeted.

Since Russia launched its invasion of Ukraine in February 2022, the Turkish strongman has emerged as a key power broker, adopting a crucial balancing act between the two sides, widely known as “pro-Ukrainian neutrality.”

He helped broker a key agreement known as the Black Sea Grain Corridor Initiative that unlocked millions of tons of wheat caught up in Russia’s invasion of Ukraine, averting a global hunger crisis. The agreement was extended for another two months last Wednesday, one day before it was set to expire.

In a statement on Twitter, Ukrainian President Volodymyr Zelensky congratulated Erdogan for his victory.

“We count on the further strengthening of the strategic partnership for the benefit of our countries, as well as the strengthening of cooperation for the security and stability of Europe,” Zelensky said.