The conservative People's Party and far-right Vox won more than 48% of the vote, with PM Pedro Sánchez saying his "progressive bloc" had not been strong enough.
The conservative People's Party won the most seats but will need to form a coalition government - talks are expected to take place with the far-right Vox party.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results