Lawmakers named the speaker of the upper house as Algeria's first new president in two decades Tuesday, state television reported, after the resignation of Abdelaziz Bouteflika following mass protests.
The election of Abdelkader Bensalah as interim president follows constitutional rules but goes against the demands of demonstrators, who have pushed for him and other top politicians to stand down.
"I want to work towards fulfilling the interests of the people," Mr Bensalah told parliament on taking up the 90-day interim presidency.
"It's a great responsibility that the constitution demands of me."
Opposition parties refused to back Mr Bensalah's election and boycotted the session, as hundreds of students protested against him in Algiers.