The Socialist leader, Pedro Sanchez, has won a vote in parliament to lead Spain for another term as prime minister, after weeks of haggling.
Pedro had secured a four-seat majority in the 350-seat chamber, after sealing an amnesty deal for Catalans involved in a failed bid to secede from Spain.
The conservative Popular Party won elections in July, but leader Alberto Nufiez Feijoo failed to form a majority.
Mr Sanchez told Members of the Parliament that the amnesty deal would help “heal wounds”.