A summary from From the BBC
Pedro Sánchez resigns as leader of the Spanish Socialist Workers' Party after losing an election to right-wing parties
Our correspondent in Madrid says it's no surprise the Sánchez era is over - the PM called a snap election and it backfired, badly
The conservative People's Party (PP) won the most seats with 132, while the far-right Vox got 52 - both falling short of the 176 needed for an outright majority
PP leader Alberto Núñez Feijóo is looking to form the next government - here's why negotiations for a Vox coalition could be tricky
Supporters were celebrating in the Spanish capital late on Sunday - one local says he wants "a better and calmer life" with less taxes and "more tranquillity"