Kais Saied sworn in as Tunisia's new president
Read more: 'Turning a new page': Tunisia picks law professor as new president
Saied has made strong statements against Israel, considering any ties with the state to be "high treason" - an Arab nationalist position that earned him praise among supporters.
While the security situation has significantly improved since a series of high-profile attacks on tourists in 2015, Tunisia has maintained a state of emergency for four years, with assaults against security forces persisting.
On 27 June, a suicide attack killed two people in the heart of the capital Tunis, reviving the spectre of violence.
During the campaign debate, Saied said a key to fighting terrorism was education, arguing that improving primary education would "immunise" youth against extremism.Another significant task he will face is reforming the police force, which was a cog in the dictatorship toppled by the Arab Spring revolt of 2011 and which continues to be accused of human rights abuses.
Follow us on Twitter: @The_NewArab