Spain's plans to introduce marriage rights to lesbian and gay couples have been rejected in the country's upper house of parliament.
The Spanish Senate voted Wednesday against the government's contentious bill. The final vote was 131-119.
It was blocked when the Catalan Christian Democrat Party decided to form a voting coalition with the Popular Party (PP), the Reuters news agency reports.
Along with the Catholic Church, the PP has been one of the most vociferous opponents of the bill, which will give full marriage and adoption access to same-sex couples.
It backed last weekend's demonstration against the bill along with senior Catholic bishops, who led the protest.
The PP also invited a senior psychologist to testify on the issue but was forced to distance itself from his comments after he said homosexuality was a "pathology." In a bid to reassure gay voters, the PP said the comments were not reflective of the party.
Despite the Senate setback, the gay marriage measure has already received backing from Spain's lower house of parliament and is still likely to be passed. It returns to the lower chamber next week.
Surveys suggest the majority of the Spanish public supports the legal change, which was introduced as part of a broad stroke of reform the government promised after election.