Spanish voters went to the polls for rerun elections after six months of political gridlock.
If a single party fails to secure an absolute majority, Spaniards will wait to see what coalitions could be formed. Here are some of the possible partnerships:
GRAND COALITION: Prime Minister Mariano Rajoy's favoured solution is a grand coalition between his centre-right People's Party (PP) and the Socialist Workers' Party.
But Socialist leader Pedro Sanchez has repeatedly promised to replace Rajoy, saying that a coalition with Rajoy's conservatives would betray Spanish voters.
CENTER-RIGHT COALITION: The centrist Ciudadanos (Citizens) party is not opposed to a coalition with Rajoy's party but insist that he does not have a second term in power.
The parties' relationship soured last week, after recordings were leaked of Interior Minister Jorge Fernandez Diaz, who is also a prominent PP member. On the tapes he is heard speaking to the head of the Catalan anti-fraud agency about the possibility of going after politicians who were calling for Catalonia's split from Spain.
Ciudadanos was founded in Catalonia a decade ago.
Voter surveys suggest that such an alliance will remain theoretical, as electoral forecasts point to the parties receiving an insufficient number of seats in parliament to form a coalition.
LEFT COALITION: Pablo Iglesias, the secretary general of the left-wing Podemos (We Can) party, encourages an alliance with the Socialists.
According to polls, this grouping could reach an absolute majority.
But many Socialists vehemently oppose a leftist partnership with Podemos - a two-year-old party that grew out of anti-austerity protests and has quickly become a political force - even if it means it would put them in power.