Bermuda is poised to again permit same-sex marriages after a high court reversed a ban on the unions.

Earlier this year, the British territory made the unprecedented decision to repeal the right of gay couples to marry - making it the first nation to extend and then revoke that right.

Governor John Rankin signed a measure banning same-sex marriage after a referendum found a majority of Bermudans opposed them, seeking to override a Supreme Court decision allowing same-sex unions.

Gay Bermudians sued, saying Parliament lacked the power to reverse the high court. Chief Justice Ian Kawaley sided with them, writing in his decision that “Parliament cannot impose the religious preferences of any one group on the society as a whole”.

“One side of the freedom of conscience coin is that as a general rule no one can be compelled to participate in activities which contravene their beliefs”, Mr Kawaley wrote. “The other side of the same coin is that the State cannot use the legislative process to pass laws of general application which favour some beliefs at the expense of others”.

The ruling does not take effect immediately. Bermuda’s government has a six-week window in which two decide whether to appeal.

Same-sex marriage legalised across the US Show all 15 1 /15 Same-sex marriage legalised across the US Same-sex marriage legalised across the US Same-sex marriage legalised across the US U.S. Supreme Court ruled that the U.S. Constitution provides same-sex couples the right to marry Reuters Same-sex marriage legalised across the US Same-sex marriage legalised across the US Ariel Olah of Detroit, left, and her fiancee Katie Boatman, are overcome by emotion outside the Supreme Court in Washington, Friday, June 26 AP Same-sex marriage legalised across the US Same-sex marriage legalised across the US Lori Hazelton and Stephanie Ward are the first same-sex couple to receive their marriage license on Friday, June 26, 2015, in Muskegon, Mich AP Same-sex marriage legalised across the US Same-sex marriage legalised across the US Wedding cakes provided by All Saints Episcopal Church of East Lansing are cut inside the Ingham County Courthouse in Mason, Mich PA Same-sex marriage legalised across the US Same-sex marriage legalised across the US Ariel Cronig (L) and Elaine Cleary embrace outside of the US Supreme Court after the ruling in favor of same-sex marriage Getty Same-sex marriage legalised across the US Same-sex marriage legalised across the US Reverend Laura Barclay, right, officiates the marriage of Tadd Roberts, left and Benjamin Moore at the Jefferson County Clerks Office Friday AP Same-sex marriage legalised across the US Same-sex marriage legalised across the US Beth Sherman (L) and her wife Karen Hawver (R) celebrate with their children Ben and Emma (C) the U.S. Supreme Court's landmark ruling of legalizing gay marriage nationwide Reuters Same-sex marriage legalised across the US Same-sex marriage legalised across the US People celebrate in front of the U.S. Supreme Court after the ruling in favor of same-sex marriage June 26, 2015 in Washington, DC Getty Same-sex marriage legalised across the US Same-sex marriage legalised across the US Eric Hause of Norfolk, center, hugs Claus Ihlemann and Robert Roman in the lobby of the Slover Library Friday morning, June 26, 2015 AP Same-sex marriage legalised across the US Same-sex marriage legalised across the US Spencer Trzybinski hangs a rainbow flag, a symbol of the lesbian, gay, bisexual, and transgender movement, at the Dunes Resort and Entertainment Complex in Douglas, Mich AP Same-sex marriage legalised across the US Same-sex marriage legalised across the US Angela Boyle, left, and Laura Zinszer take a selfie after receiving their marriage license at the Boone County Recorder of Deed's office on Friday, June 26, 2015, in Columbia, Mo AP Same-sex marriage legalised across the US Same-sex marriage legalised across the US After 54 years as a couple, George Harris, 82, and Jack Evans, 85, are married by Judge Denise Garcia on Friday, June 26, 2015 at the Dallas County Records Building in Dallas, Texas AP Same-sex marriage legalised across the US Same-sex marriage legalised across the US Newlyweds, Colby Roanhorse, left, and Zachary Roanhorse celebrate after applying for a marriage license from the Kent County clerks office, Friday, June 26, 2015, in Grand Rapids, Mich AP Same-sex marriage legalised across the US Same-sex marriage legalised across the US A couple kiss to celebrate the US Supreme Court's historic decision on same sex marriage during a rally outside the Stonewall Tavern in the West Village in New York on June 26, 2015, after the US Supreme Court's historic decision on same sex marriage AFP Same-sex marriage legalised across the US Same-sex marriage legalised across the US A demonstrator arrives at a rally in Greenwich Village to celebrate the Supreme Court's ruling on gay marriage, Friday, June 26, 2015, in New York. AP

Gay rights advocates reacted to the decision with joy, saying it vindicated the steady advancement of same-sex marriage legalisation.

Chris Bryant questions why the Government has allowed same-sex marriage to be outlawed in Bermuda