TUNIS, Tunisia — Tunisian President Beji Caid Essebsi, the North African country's first democratically elected leader, has died.

He was 92.

An official in the president's office told The Associated Press that Essebsi died Thursday morning at the Tunis military hospital, where he was taken the night before.

That was the third time in recent weeks that he had been hospitalized.

Under Tunisia's constitution, the president of the parliament will assume the presidency for 45 to 90 days while elections are organized.

Essebsi won office in 2014 in the wake of the country's Arab Spring uprising.

He recently announced he wouldn't run in the election scheduled for November, saying a younger person should lead the country.