Tunisia’s 92-year-old president, Beji Caid Essebsi, who helped guide the North African country’s transition to democracy after a 2011 revolution, has died, the presidency said on Thursday.

A leading figure in the country’s fortunes since 2011, Essebsi was hospitalized late last month for a week after suffering what authorities described as a severe health crisis.

“On Thursday morning, the President of the Republic died at the military hospital in Tunis…The burial ceremony will be announced later,” a presidency statement said.

The speaker of parliament, Mohamed Ennaceur, said he would be the country’s temporary president, in line with the constitution. In a speech on national television, Ennaceur also called for unity following Essebsi’s passing.

The prime minister declared seven days of national mourning. A source said Ennaceur’s swearing in would take place at 1300 GMT.

Essebsi had been a prominent politician in Tunisia since the overthrow of veteran autocrat Zine El-Abidine Ben Ali in 2011, which was followed by uprisings against authoritarian leaders across the Middle East, including in nearby Libya and Egypt.

Drafted in as prime minister in 2011 after Ben Ali was toppled, Essebsi was elected president three years later, becoming the country’s first directly elected head of state after its “Arab Spring” uprising.

Parliamentary elections are expected to be held on Oct. 6 with a presidential vote following on Nov. 17. They will be the third set of polls in which Tunisians have been able to vote freely following the 2011 revolution.

The presidency statement called on Tunisians to unite and safeguard their country’s present and future.