Over two years ago, I wrote a blogpost outlining why I thought those who were opposed to same-sex marriage were also opposed to safe legal abortion. (Human Rights: Abortion and gay marriage).
In 2004, the Partido Socialista Obrero Español (PSOE) won the general election and had as a manifesto commitment, lifting the ban on same-sex marriage in Spain. In 2005, Spain became the third country in the world in which same-sex couples can marry. In 2011, the right-wing Partido Popular (PP) won a majority, and had in their manifesto commitments to roll back access to safe legal abortion, and to have the Constitutional Court consider re-imposing a ban on same-sex marriage.
Courts and judges, upholders of law and order, have in general proved to be supporters of keeping marriage legal, because unmaking lawful marriages is disorderly, and to the judicial mind, disorderliness in marriage law is anathema. In 2012, so it proved in Spain: rather than fall into the unutterable confusion of declaring that seven years of marriages would no longer be recognised, the 2005 law was upheld.