Gay and lesbian couples will be able to marry in the Australian Capital Territory after a bill to legalise same-sex marriage passed the territory's legislative assembly.
People in the public gallery clapped and sang Love Is In The Air when the bill passed shortly before midday on Tuesday.
The first marriages are likely to take place from December.
But the federal government has flagged a high court challenge to the laws.
The federal attorney general, George Brandis, said his government had legal advice that the ACT's legislation was invalid because it was inconsistent with the provisions of the Commonwealth Marriage Act.
"Irrespective of anyone's views on the desirability or otherwise of same-sex marriage, it is clearly in Australia's interests that there be nationally consistent marriage laws," a spokesman for Senator Brandis said in a statement on Tuesday.
Brandis has asked the ACT government not to put the new laws into effect until the court can determine their validity, but the chief minister, Katy Gallagher, has vowed to press ahead.
"I don't believe this bill in any way challenges, diminishes or undermines the religion or faith of any individual," she said during the debate on the bill.
"If we are to be judged by a higher being on this law, then let it be so."
Gallagher's openly gay deputy, Andrew Barr, broke down in tears during debate on the bill.
"The sacrifice, the suffering, the struggle and the tireless exertions and passionate concern of gay and lesbian Canberrans, their parents and their families finds a voice and finds a champion in this assembly," said Barr, who is in a civil union with his partner, Anthony Toms.
More than 200 people were present to watch the debate, with the public gallery packed and people who could not squeeze in watching the debate broadcast in another room.
The opposition leader, Jeremy Hanson, told the assembly that legalising same-sex marriage was not a responsible course of action.
"We do not see the ACT assembly as a vehicle to drive national agendas on social agendas," he said.
The Greens MLA Shane Rattenbury, who has the deciding vote in the 17-member assembly, said it was a landmark moment for the ACT.
The federal Labor MP for the Canberra electorate of Fraser, Andrew Leigh, congratulated the ACT on the bill and said the Abbott government's challenge plan was "mean-spirited".
"What the ACT has done is simply allow two people who love each other to have that love recognised by way of marriage," Leigh said.
"It isn't going to weaken heterosexual marriages like mine. This is going to make us stronger as a society."
250pxLocalisation du Territoire de la capitale australienne (en rouge)




L' a adopté le projet de loi autorisant les couples de même sexe à se marier, le projet avait pourtant été rejeté au niveau fédéral en septembre 2012 avec 98 voix contre et 42 pour. Le projet a été adopté à 8 voix contre 7, deux des 17 membres de l'assemblée étaient absents lors du vote. 

Le procureur général de l'assemblée,  a fait une série d'amendements de dernière minute pour s'assurer que le projet de loi pourrait survivre à une contestation judiciaire. La loi permet aux couples de même sexe de toute l'Australie de se marier dans le .

La ,  a déclaré que le gouvernement allait s'efforcer à traiter tout le monde  équitablement selon la loi et ce malgré la menace de contestation judiciaire.

Le député fédéral local, , ardent défenseur des droits des couples de même sexe, a applaudi le projet de loi, mais le , , a indiqué que son gouvernement allait contester la loi devant la .

L' avait déjà tenté de faire passer une loi autorisant le mariage aux couples de même sexe en 2006 mais elle avait été bloquée par le  sur les conseils du Premier ministre alors en fonction . Le projet de loi a été adopté à nouveau après que Howard a perdu ses fonctions en 2007, mais les dispositions sur le mariage ont été retirés de l'acte sous la menace d'être rejetée par le Premier ministre . Rudd est désormais favorable au le mariage homosexuel.