Green Party's gay rights activist Volker Beck, front right, and fellow faction members celebrate with a confetti popper after German Federal Parliament, Bundestag, voted to legalize same-sex marriage in Berlin, Germany, Friday, June 30, 2017. Photo: Michael Sohn, AP

Green Party's gay rights activist Volker Beck, front right, and fellow faction members celebrate with a confetti popper after German Federal Parliament, Bundestag, voted to legalize same-sex marriage in Berlin, Germany, Friday, June 30, 2017. Photo: Michael Sohn, AP

Germany’s president has signed legislation legalizing gay marriage, his office said Friday, paving the way for the bill to take effect this fall.

Lawmakers approved the bill on June 30 in parliament’s last session before Germany’s September election. The move became possible after Chancellor Angela Merkel, whose conservative party had long been reluctant to budge on the issue, said she would allow its lawmakers to vote according to their conscience.

Related: Germany takes in its first refugee fleeing anti-gay abuses

The presidential office said President Frank-Walter Steinmeier signed the legislation on Thursday. That means it will come into force Oct. 1 at the earliest.

Germany has allowed same-sex couples to enter civil partnerships since 2001, but until now has not granted them full marital rights including the possibility of jointly adopting children. The change brings it into line with many other western European countries.

“Marriage is a question of love and responsibility and not of gender,” Katarina Barley, the minister for families, said.

Related: Watch Angela Merkel pressure Putin to stop the abuses of gay & bi men in Chechnya

Barley, whose center-left party pushed for legalizing same-sex marriage, said that “marriage for everyone makes Germany a more modern country.”

© 2017, Associated Press, All Rights Reserved.

This material may not be published, broadcast, rewritten, or redistributed.