The Mediterranean island country's parliament passed the bill by a vote of 37-0.
The opposition abstained because it opposes gay adoption but not gay unions, said its leader Simon Busuttil.
Thousands of supporters cheered the law's passage on the central square in the capital Valletta.
News that makes sense
Your trusted source for staying up-to-date with the world around you. Get free daily news updates and analysis, straight to your inbox.
Catholicism is the state religion in Malta, the European Union's smallest member state.
According to the International Lesbian and Gay Association, which welcomed the new law, Malta is the 22nd European country to recognise same-sex unions and the 10th to allow such couples to adopt.

