Spain’s Socialist party leader Pedro Sanchez is set to become the new prime minister following a successful no-confidence motion against former Prime Minister Mariano Rajoy.
Mr Sanchez has promised to “transform” Spain, seeking to address Spain’s “social urgencies” and move away from the strategy of austerity.
“I am aware of the responsibility I am assuming, of the complex political moment our country is going through, and I will rise to all the challenges with humility and dedication,” he said.
His Socialist Party has just 84 seats in the 350 seat assembly, meaning Spain will face another hung parliament.
The motion had 180 votes in favour, 169 against and one abstention, with the Basque Nationalist Party withdrawing support for Mr Rajoy after a series of corruption scandals rocked his party.
Dozens of people linked to Mr Rajoy’s People’s Party have been sentenced to jail after a corruption trial.