Lawmakers in Maryland have given their approval for a bill permitting same-sex marriage.
The state Senate voted 25-22 to approve the bill, which had earlier gained approval from the lower House of Delegates, according to a government website. Maryland would become the eighth US state to allow gay marriage.
Governor Martin O'Malley has said he will sign the legislation. It was not immediately clear when the bill would be sent to him for his approval.
So far, seven US states -- Connecticut, Iowa, Massachusetts, New Hampshire, New York, Vermont and Washington -- plus the District of Columbia allow same-sex marriage, but the issue remains highly controversial, especially in this presidential election year.
Last week, lawmakers in New Jersey approved a bill legalizing same-sex marriage, but Republican Governor Chris Christie vetoed it, saying the issue was so important "it should be left to the people of New Jersey to decide."
Christie, a rising star in the Republican party, has advocated a popular referendum on the issue.
Such a vote by New Jersey citizens, as opposed to their representatives in state government, he said, was "the only path to amend our state constitution and the best way to resolve the issue of same-sex marriage in our state."
A group of 80 US mayors -- including New York's Michael Bloomberg, Chicago's Rahm Emanuel, Antonio Villaraigosa from Los Angeles and Annise Parker from Houston -- last month unveiled a campaign to win support for same sex marriage.
Gay marriage was briefly authorized in California in 2008, but later banned by a referendum re-writing the state's constitution to restrict marriage to unions between a man and a woman.
A US federal appeals court earlier this month declared the California ban on same-sex marriage unconstitutional.
Opponents are expected to appeal, and the legality of same-sex marriage will likely be decided by the US Supreme Court.