Turks are voting in the most pivotal elections in their modern history, to decide if Recep Tayyip Erdogan remains president after 20 years in power.
His main rival, Kemal Kilicdaroglu, promises to scrap many of the powers acquired by President Erdogan after he survived a failed coup in 2016.
Buoyed by a broad opposition alliance, he has a real chance of winning.
But this race has become so intense and the stakes so high that campaigning went up to the wire.
President Erdogan was filmed stretching election rules by addressing worshippers at Saturday evening prayers in Istanbul.
To secure outright victory on Sunday, the winner needs more than 50% of the vote. Otherwise it goes to a run-off in two weeks’ time.
Turkey’s 64 million voters go to the polls in particularly hard times.
Rampant inflation is officially almost 44%, but many Turks believe it is far higher, while 11 of the country’s provinces have been affected by twin earthquakes that left more than 50,000 people dead.
At an optician’s in Ankara, Burak Onder complained that hardly anyone was buying glasses any more: “People don’t even ask for discounts, they can’t afford it.”
Inflation soared as President Erdogan abandoned orthodox economics, cutting interest rates while most other countries raised theirs.
A few doors down the street, shopkeeper Rahime revealed layers of price labels that she stuck on top of each other almost daily because of soaring costs.
“People come in and ask why are prices rising all the time, and they leave without buying anything,” she said.
Rahime’s 19-year-old daughter Sudenur feels anxious about the future, and is worried she may not be able to fulfil her ambition of studying sport science.
As a first-time voter, she and five million others like her are expected to make a big difference to the election result.
Turks have from 08:00 to 17:00 (05:00-14:00 GMT) to vote, although 1.76 million have already cast their ballots abroad in Germany, France and other countries – a record 53% turnout.
For survivors affected by the 6 February earthquakes, voting will prove far harder, because many have left their homes and can only vote where they are registered.
The aftermath of the disaster has overshadowed the election campaign and become second only to the economy as a key issue.
In Adana, where hundreds of people died in collapsed buildings, there is still palpable anger about the response.
“I think the earthquake will affect the outcome of the elections seriously, because people feel resentful to the government, if not the state,” said Ezgi Karaher as she walked with her young daughter in the park.
Many of us share this feeling in Adana. We feel if another earthquake hits here there won’t be anyone trying to rescue us
Political parties have laid on buses for thousands of survivors from across Turkey to travel back to vote in some of the worst-hit provinces where they are still registered.
On the sunny platform at Iskenderun station, people were arriving by train too.
“It was standing-room only this morning,” said one arrival on an early morning service.
Staff said some 300 extra passengers were aboard, heading to stay with family or friends for the night. They were braced for even more voters to come on the late train.
Not everyone is able to go back. Two women at an Ankara supermarket told the BBC they would miss out on voting because they were having medical treatment following the earthquake.
Party strongholds across the country are ablaze with their respective party colours and slogans.
And tensions have increased in the run-up to polling day.
Opposition parties are deploying volunteers to ensure the 192,000 ballot boxes and results are properly scrutinised to avoid the risk of fraud.
One of the four presidential candidates, Muharrem Ince, pulled out of the race three days ago, citing a smear campaign of “character assassination”. But it was too late to remove his name from the ballot.
In the final hours of the campaign on Saturday, Mr Kilicdaroglu, 74, laid carnations at the mausoleum of Turkey’s modern-day secular founder Ataturk.
And President Erdogan, who is 69, ended his election push by leading evening prayers at Hagia Sophia mosque in Istanbul, but then he went further. Video shared on social media showed him telling worshippers the Muslim world was closely following events in Turkey.
His choice of venue and his decision to give a political speech after campaigning had officially ended was controversial, and highly symbolic to his supporters.
Hagia Sophia, originally built as an Orthodox Christian cathedral, was a mosque under the Ottomans. But Ataturk turned it into a museum and it was President Erdogan who defied secular Turkey’s founder and made it a mosque once more in 2020.
Ultra-nationalist Sinan Ogan is the only other presidential candidate.
But Turks are also voting for parliament and its 600 MPs. Although they have lost powers to Mr Erdogan’s executive presidency since 2018, control of parliament remains key for passing legislation.
Under Turkey’s proportional voting system, parties form alliances so they can reach the 7% threshold required to enter parliament.
The president’s AK Party, which has Islamist roots, is part of the People’s Alliance with the nationalist MHP and two other parties, while Mr Kilicdaroglu’s centre-left Republican People’s Party is working with the nationalist Good Party and four smaller parties under the Nation Alliance.
The pro-Kurdish HDP, Turkey’s second biggest opposition party, is part of another alliance, but has campaigned under a different name, the Green Left.
Source: BBC News