Status of same-sex marriage which includes same-sex marriage and same-sex adoption. The bill was approved by parliament, but rejected by voters in a 2015 referendum. On 24 February 2017, a new law came into effect which gives same-sex partnerships all the legal rights of marriages, with the exception of adoption and in-vitro fertilisation. Spain became the third country in the world (after the Netherlands and Belgium) to legalize same-sex marriage. After being elected in June 2004, Spanish prime minister José Luis Rodríguez Zapatero restated his pre-election pledge to push for legalization of same-sex marriage. On 1 October 2004, the Spanish Government approved a bill
José Luis Rodríguez Zapatero Minister of Defence), Juan Carlos Rodríguez Ibarra (president of the regional government of Extremadura and one of the most important socialist leaders), Miguel Ángel Moratinos (his minister of foreign affairs 2004–2010), Gregorio Peces-Barba (later appointed by him High Commissioner for the Victims of Terrorism, although he has already made public his resignation), Carmen Calvo (later appointed minister of culture), etc. Ten days later, on 18 January 2004, Zapatero announced that he would only become prime minister if the Spanish Socialist Workers Party received a plurality, renouncing possible parliamentary alliances in advance if that situation did not happen after the election.