Amid huge protests and a boycott, five candidates with links to the Bouteflika regime squared off and former Prime Minister Abdelmadjid Tebboune came out ahead.
Bouteflika has been in power since 1999. Instead of holding an election this month to determine who will succeed the 82-year-old leader, Algeria's government will enter a new "transition" phase.
Demonstrations at universities across the country called on the president of two decades not to run again. Bouteflika has rarely been seen in public since suffering a stroke in 2013.