When President Beji Caid Essebsi died in late July, three months before his mandate was due to end, Tunisian authorities reacted swiftly.
The news of his death was communicated to the public within an hour, the speaker of parliament was sworn in as interim leader shortly thereafter, and the electoral commission brought forward the date for the presidential election.
But the peaceful handover of power, a rarity in the Arab world, belies the political instability and economic stagnation that have plagued the country since it democratised in 2011.
Tunisians will head to the polls on Sunday to choose Essebsi’s successor, with 26 candidates vying for the job.
There are a number of prominent figures running for the position, including Prime Minister Youssef Chahed, Defence Minister Abdelkarim Zbidi, jailed media mogul Nabil Karoui and Abdelfattah Mourou, the first presidential candidate put forward by the Islamist party Ennahdha.
Analysts say the large pool of high-profile candidates makes it difficult to predict the outcome.
Here are four things to know about Tunisia’s upcoming presidential election.