Former Algerian Prime Minister Abdelmadjid Tebboune has been elected president in a vote marred by protests.
The 74-year-old succeeds Abdelaziz Bouteflika, who was forced to resign in April after two decades in power.
Mr Tebboune took 58% of the votes in Thursday’s election, according to the head of the electoral commission.
Mr Tebboune and the four other candidates were criticised for being closely linked with the rule of Mr Bouteflika.
President Bouteflika stepped down following demonstrations across the country.
Anti-government rallies have continued, however, with protesters demanding the sweeping away of the entire political establishment.
Thousands of people took to the streets of the capital, Algiers, on Thursday to protest against the election.
Mr Tebboune served as housing minister under President Bouteflika and then had a brief spell as prime minister.
Electoral officials say about nine million people voted – a turnout of about 40%.
Did You See This CB Softwares?
37 SOFTWARE TOOLS... FOR $27!?Join Affiliate Bots Right Away
“The turnout is satisfying and it will give the new president enough backing to implement his reforms,” said Ahmed Mizab, a commentator on state television.