The Chilean Senate on Tuesday approved the repeal of Article 365 of the country’s penal code that differentiated the age of consent between same-sex and heterosexual couples.

Article 365 was the last homophobic law in force in the country that has seen an expansion of rights to LGBTQ and intersex Chileans in recent years.

A law that allows same-sex couples to marry and adopt children took effect on March 10. Although the Article 365 repeal bill will go before the Chilean House of Deputies, Movimiento de Integración y Liberación Homosexual (Movilh), the country’s main LGBTQ and intersex rights group, said its passage is assured because the chamber has already approved it.