Answer
Same-sex marriage became legal in Spain in 2005, making it the third country in the world to legalize it nationwide. The legislation, known as the "Ley de Matrimonio Homosexual," was passed by the Spanish Parliament on June 30, 2005, and came into effect on July 3, 2005.