The Socialists led by Pedro Sanchez got just 130 votes, with 219 against and one abstention. The conservative Popular Party led by acting Prime Minister Mariano Rajoy and the far-left newcomer Podemos party joined together along with several small regional parties to deny Sanchez' attempt at becoming prime minister.
The vote came after an inconclusive Dec. 20 election that saw the nation's traditional two-party system shattered with the entry of Podemos and another upstart party, the business-friendly Ciudadanos.
Sanchez needed at least 176 votes to form a government but only received his party's 90 votes plus 40 from Ciudadanos. Rajoy earlier Wednesday labeled Sanchez's plans to form a government as a joke and said all of his party's 123 deputies would vote against the Socialists, who came in second in the election. Rajoy's party came in first but fell far short of winning the parliamentary majority it had previously.
Sanchez has another chance Friday in a second parliamentary voting round with different winning rules in which he must get more votes for him than against him. That's a lower bar which allows parties to abstain, letting a rival into power in return for concessions.
Rajoy decided in January not to try to form a government because he lacked support.
If Sanchez fails to win Friday's vote, Parliament has two more months to try to choose a government or new elections will be called for June 26.
