The bill gives homosexual couples in Germany the same rights as heterosexual couples, and will allow same-sex couples to marry and jointly adopt children. It passed by 393 votes to 226, with four abstentions.
The bill is likely to pass through the Bundesrat — Germany’s upper house — next week. The Bundesrat has previously approved legalizing same-sex marriage.
Once it has been officially signed into law, Germany will enter the club of more than 20 countries where same-sex marriage is legal.
Merkel votes no
Speaking after the vote, Merkel said she had voted no on the issue, but that it had been important to put it to a vote of conscience.
“For me and the basic law, it’s about the marriage of a woman and a man. That’s why I voted against it,” she said, adding that it had been an emotional debate for many in parliament, including herself.
She added: “I hope that the vote today shows not only the mutual respect for different opinions but that this also leads to more peace and social cohesion as well.”
Martin Schulz, leader of the Social Democratic Party (SPD) — the second largest party in parliament — tweeted following the vote that “progress is possible” and said he was “happy for all the married couples to-be.”
The vote was welcomed by the International Lesbian, Gay, Bisexual, Trans and Intersex Association in Europe, which suggested same-sex couples could be able to marry by the end of the year.
“After years of waiting and hoping, rainbow families in Germany will now receive equal recognition under the law — this is a historic milestone that can inspire even more change for LGBTI people,” said ILGA-Europe executive director Evelyne Paradis.
A ‘vote of conscience’
The vote caps a turbulent week in German politics. Facing pressure on the issue from the leaders of other political parties, Merkel announced Monday that she would like to see parliament move towards a “vote of conscience” on same-sex marriage, kicking off a chain of events that culminated in Friday’s vote.
The Chancellor made the comment at an event in Berlin hosted by women’s magazine Brigitte, where she was asked by a gay man in the audience whether he would be able to refer to his partner as “my husband.”
Merkel responded by acknowledging the widespread support for gay marriage among German voters and suggesting a free vote in parliament, meaning lawmakers vote freely rather than being asked to support their parties’ official positions.
Her comments represented a significant shift for the German leader and for her conservative party, the Christian Democratic Union (CDU), which has long opposed same-sex marriage and promoted “traditional” family values.
Merkel under pressure
But with September’s election looming, Merkel has come under increasing pressure, with her main rivals and potential coalition partners announcing support for “Ehe für alle” (marriage for all).
The left-leaning Green party and the centrist FDP had both said that they would not enter into any coalition deal with Merkel if “Ehe für alle” was not enshrined in it. The left-leaning Die Linke party has long supported full equality.
Following the Chancellor’s comments Monday, Schulz seized on the moment, tweeting “We will push through marriage equality in Germany. This week.”
Friday was the last chance for parliament to vote on the issue before it breaks for the summer recess and election campaigning begins in earnest.
‘Disintegration of the social order’
While Merkel’s announcement of the free vote delighted LGBT rights campaigners and many of the country’s liberal politicians, it has caused divisions within her own party.
Gay rights have long been a controversial issue within the CDU and its more conservative Bavarian sister party, the Christian Social Union (CSU). Some CSU politicians reacted angrily to Merkel’s comments and the vote.
“This is about the further disintegration of the social order,” CSU politican Hans-Peter Friedrich tweeted on Wednesday.
“Marriage is reserved for a woman and a man,” wrote Hans Reichart, a CSU politician in the Bavarian state parliament. “That must prevail!”
Anja Neundorf, associate professor at the University of Nottingham, said she saw Merkel’s change of stance as an election tactic designed to appeal to the average German voter — but one that could backfire among traditional, religious CSU supporters in Bavaria. Merkel needs the support of those voters to win the election.
CSU supporters “are much more sensitive to this issue” than other voters, Neundorf told CNN. And some might choose to simply stay at home on polling day, she explained.
By legalizing gay marriage, Germany follows the path of many of its European neighbors, as well as countries around the world.
In 2001, the Netherlands became the first country to legalize same-sex marriage. More than 20 other nations have followed suit, including Spain, Canada, Argentina, France, the United Kingdom and the United States.
CNN’s Laura Smith-Spark and Nick Thompson contributed to this report.