Malta's parliament voted to allow same-sex couples to marry, three years after passing a law permitting civil partnerships in the overwhelmingly Catholic country.
Lawmakers gave near-unanimous approval to the bill, which represents a major step for LGBT rights on the island, which legalised divorce only in 2011 and where abortion is outlawed.
Malta, the EU's smallest nation, becomes the bloc's 15th member to legalise same-sex unions.
The vote was one of prime minister Joseph Muscat's first actions following his election victory last month.
"It's a historic vote. This shows that our democracy and society have reached a level of maturity and we can now say that we are all equal", he said after the text was passed.
The Netherlands was the first European country to legalise same-sex marriage, in 2001, with the most recent being Germany on June 30 after a surprising shift on the issue by Chancellor Angela Merkel.
Gay marriage has also been approved in Canada and the United States, and in four South American countries, though it remains illegal in most of Africa and Asia.