ANNAPOLIS, Md. (AP) -- Maryland's House speaker vows Democrats will try again next year to pass legislation legalizing gay marriage, noting intense lobbying by faith groups against the measure shows it remains divisive in a state known for its liberal politics.
A loose coalition of Democratic legislators failed to cobble together enough votes to overcome opposition from Republicans and religious groups, including the Catholic church and many black congregations, to make Maryland the sixth state to legalize gay marriage.
Lawmakers had planned to vote on the bill in the House, but it was withdrawn instead Friday and effectively killed for the year.
Opposition from some religious groups grew after the Senate narrowly passed its version of the measure Feb. 24. Then some black Democratic lawmakers withdrew their support, while freshman legislators had trouble determining what constituents wanted.
House leaders didn't rely on a traditional whipping operation to line up votes on a hot-button social issue, even after Republicans gains last year.
"The vote would have been very close, make no mistake about it," said House Speaker Michael Busch, D-Anne Arundel, after it was referred back to committee on a voice vote.
Busch had been meeting with his fellow delegates for days seeking votes, saying he will try again next year.
Delegate Anne Kaiser, D-Montgomery, one of the chamber's openly gay members, said supporters were always a few votes short of the 71 needed and that many factors blocked their way.
"I think in some cases it was the churches back home," Kaiser said. "I really can't explain people's motivations. Many people who promised us their votes changed their minds."
The bill's withdrawal bitterly disappointed gay marriage supporters who said they had appeared close to a major victory after the Senate, considered the more conservative of Maryland's two Democratic-controlled chambers, approved a similar proposal.
Same-sex marriage is legal in Connecticut, Iowa, Massachusetts, New Hampshire, Vermont and the District of Columbia. Rhode Island lawmakers are debating legislation to legalize same-sex marriage.
But the Maryland bill hit trouble in the House two weeks ago after a committee had to delay a series of votes on the issue and some Democrats, including in the black community, began wavering.
Even if the bill had passed, there was a chance that it could have been put to voters in a referendum. Under Maryland law, citizens who gather enough signatures can petition for their right to vote on laws passed by legislators.
The issue divided the state's top three political leaders, all Catholic Democrats. While Senate President Thomas V. Mike Miller opposed legalizing gay marriage, Busch and Gov. Martin O'Malley supported it.
"I would have hoped that we could have resolved this issue and then let the people decide," O'Malley said.
National groups on both sides of the debate had converged on Annapolis in the past week, with the National Organization for Marriage pledging to spend $1 million to oppose the re-election of supporters of the bill. The liberal Human Rights Campaign called voters urging them to ask their lawmakers to support the bill.
Opponents of gay marriage said it was a victory for protecting marriage.
"We took a position to support the existing definition (of marriage) as being between one man and woman and that prevailed," said House Minority Leader Anthony O'Donnell, R-Calvert.
Catholic officials, led by The Maryland Catholic Conference, coordinated much of the opposition. After the Senate voted, leading bishops in Maryland signed a letter urging Catholics to contact their legislators and insisting the debate was "not over," according to the Catholic News Service.
Maryland was founded by Catholics in the 17th century, and the Archdiocese of Baltimore says the Catholic population in Baltimore and its nine counties alone is nearly a half million.
Associated Press writer Brian Witte in Annapolis contributed to this report.