US President Barack Obama's administration threw its weight behind gay marriage on Thursday, urging the Supreme Court to strike down California's ban on same-sex unions.
The court is set to examine the issue on March 26, when it will study the constitutionality of California's Proposition 8, a measure approved by a 2008 referendum that outlawed gay marriage in the most populous US state.
In a separate brief to the court concerning another case, the administration has asked justices to declare the 1996 Defense of Marriage Act -- a law that defines marriage as a union between a man and a woman -- unconstitutional.
The Justice Department filed the latest brief in support of moves to have the California measure overturned, arguing that it violates the 14th Amendment to the Constitution that guarantees citizens equal rights.
"The government seeks to vindicate the defining constitutional ideal of equal treatment under the law," Attorney General Eric Holder said in a statement.
"Throughout history, we have seen the unjust consequences of decisions and policies rooted in discrimination," he warned.
"The issues before the Supreme Court in this case... are not just important to the tens of thousands of Americans who are being denied equal benefits and rights under our laws, but to our nation as a whole."
The filing by Solicitor General Donald Verrilli is more narrowly focused on the California ban, and does not seek a ruling that would apply nationwide.
The administration's brief noted that seven other states -- Delaware, Hawaii, Illinois, Nevada, New Jersey, Oregon and Rhode Island -- have measures that grant same-sex couples rights similar to those of married couples, while restricting marriage to heterosexual unions.
Those states would be affected by the California ruling.
The California law "provides to same-sex couples registered as domestic partners all the legal incidents of marriage, but it nonetheless denies them the designation of marriage, Verrilli wrote.
Therefore, "the exclusion of gay and lesbian couples from marriage does not substantially further any important governmental interest," he added.
Gay marriage opponents have seized upon the same similarities to claim there is no discrimination, saying California provides essentially the same rights and obligations of marriage to same-sex domestic partners.
Nine states and the US capital Washington currently allow gay marriage. The states include Connecticut, Iowa, Maine, Maryland, Massachusetts, New Hampshire, New York, Vermont and Washington.
The federal government is not a party in the case, but its friend-of-the-court brief marked a victory for gay rights groups challenging the California law.
The White House's support had been expected since Obama shifted his stance on the same-sex marriage question before his re-election last year.
"President Obama and the solicitor general have taken another historic step forward consistent with the great civil rights battles of our nation's history," said Chad Griffin, head of Human Rights Campaign, a gay rights group.
"The president has turned the inspirational words of his second inaugural address into concrete action by urging our nation's highest court to put an end to discrimination against loving, committed gay and lesbian couples."
Obama last month made the first-ever direct reference to gay rights in an inaugural address, saying: "Our journey is not complete until our gay brothers and sisters are treated like anyone else under the law.
"For if we are truly created equal, then surely the love we commit to one another must be equal as well."