The incumbent Socialist Prime Minister Pedro Sánchez has called Núñez Feijóo to concede defeat and congratulate him on his victory. He said it was a "sad night" but that the fight for social justice "never ends".
With more than 80% of votes counted, the People’s Party has secured at least 133 seats with the far-right Vox party winning at least 51 seats. Voter turnout is more than 78%, the highest level for decades.
Reeta Chakrabarti presents BBC News at Ten reporting by Nick Beake in Madrid.