qnli question: When did same-sex marriages become legal in Spain? sentence: The King gave royal assent to Law 13/2005 on 1 July 2005; the law was gazetted in the Boletín Oficial del Estado on 2 July and came into effect on 3 July 2005.