East coast state set to become eighth in US to approve same-sex marriage after local senators pass bill by 25-22 votes.

Maryland will become the eighth US state to legalise gay marriage [Getty]

Gay marriage is set to be legalised in the US state of Maryland after the state senate gave its final approval to a bill that will now be sent to the governor, who said he expected to sign it sometime this week.

The state senate voted 25-22 for the bill on Thursday. The vote comes less than a week after the lower house of delegates barely passed the measure.

Maryland would become the eighth state to allow gay marriage when Martin O’Malley, the governor who sponsored the bill, signs the legislation. The Democrat made the measure a priority this session after it stalled last year.

Six states allow gay couples to wed – Connecticut, New Hampshire, Iowa, Massachusetts, New York and Vermont – as well as the Washington DC capital district. The governor of Washington signed a bill this month that would make the west coast state the seventh.

Opponents in Maryland have vowed to bring the measure to referendum in November. They will need to gather at least 55,726 valid signatures of Maryland voters to put it on the ballot and can begin collecting names now that the bill has passed both chambers.

Some churches and clergy members have spoken out against the bill, saying it threatens religious freedoms and violates their tradition of defining marriage as between a man and a woman.

“The enormous public outcry that this legislation has generated – voiced by Marylanders that span political, racial, social and religious backgrounds – demonstrates a clear need to take this issue to a vote of the people,” Maryland Catholic Conference spokeswoman Kathy Dempsey said in a statement.

“Every time this issue has been brought to a statewide vote, the people have upheld traditional marriage.”

Leaders at the Human Rights Campaign, a group that joined a coalition of organisations to advocate for the bill, said they expected opponents would gather the required number of signatures.

Senator Allan Kittleman, the only Senate Republican to vote in favour of the legislation, said he was proud of his decision and not concerned about political consequences down the road.

“You don’t worry about politics when you’re dealing with the civil rights issue of your generation,” said Kittleman.

Gay marriage remains on hold in California after opponents petitioned a federal appeals court on Tuesday to review a split decision by three of its judges that struck down a voter-approved measure that limited marriage to a man and woman.