US President Barack Obama has ended months of hedging on the issue of gay marriage by saying he thinks same-sex couples should be able to wed.
He has become the first sitting US president to back gay marriage.
Mitt Romney, the Republican who is set to challenge Mr Obama for the White House in November's elections, promptly said he was against gay marriage.
In recent days, Vice-President Joe Biden and cabinet member Arne Duncan had expressed support for gay unions.
A Gallup poll on Tuesday suggested that 50% of Americans were in favour of legalising gay marriage - a slightly lower proportion than last year - while 48% said they would oppose such a move.
The interview with ABC News was apparently hastily arranged as Mr Obama came under mounting pressure to clarify his position on the issue.
"At a certain point, I've just concluded that for me personally it is important for me to go ahead and affirm that I think same-sex couples should be able to get married," Mr Obama told ABC.
He pointed to his administration's commitment to increasing rights for gay citizens. He cited the repeal of the military's "don't ask, don't tell" policy and said his administration had dropped support for the Defense of Marriage Act.
"I've stood on the side of broader equality for the LGBT community. I hesitated on gay marriage in part because I thought civil unions would be sufficient," Mr Obama said.
He said he had changed his views after seeing gay members of his own staff who were in "incredibly committed monogamous relationships", and service personnel who felt constrained by not being able to wed.
Mr Obama also said discussions with his own family had helped the "evolution" of his views on the issue.
Romney: Position on marriage is the same position I had as governor
"There have been times where Michelle and I have been sitting around the dinner table and... Malia and Sasha, it wouldn't dawn on them that somehow their friends' parents would be treated differently," Mr Obama said.
"It doesn't make sense to them and frankly, that's the kind of thing that prompts a change in perspective."
In 2010, Mr Obama said his views on the issue were "evolving", a stance that had frustrated gay rights supporters and donors.
His comments aired on Wednesday come a day after North Carolina approved a constitutional amendment effectively banning same-sex marriage or civil unions.
The Obama campaign had opposed that measure, which was passed with 61% in favour and 39% against.
In the US, 31 states have passed constitutional amendments or legislation against same-sex marriage.
Meanwhile, Mr Romney set the stage for an election year clash over the polarising social issue by saying he was against gay marriage.
The former Massachusetts governor told a Fox News affiliate: "I do not favour marriage between people of the same gender, and I do not favour civil unions if they are identical to marriage other than by name.
"My view is the domestic partnership benefits, hospital visitation rights, and the like are appropriate but that the others are not."
- Non-Hispanic white births the minority in US
- Multi-millionaire President Barack Obama has up to $1 million in a JPMorgan Chase checking account and his total worth could be $8.3 million new figures show
- Over-the-counter HIV tests backed by US panel
- First Gay President': Newsweek marks Obama's landmark announcement with controversial cover
- Pentagon condemns 'war on Islam' US training class
- US 'foils new underwear bomb plot' by al-Qaeda in Yemen
- Two charged after illegal immigrants found in Texas houses
- John Edwards' betrayed wife 'tore off bra
- Barack Obama pledges to 'finish the job' in Afghanistan
- Obama criticises 'knucklehead' sex scandal agents
- Mitt Romney vows to oust Obama after primary sweep
- Mexico-US migration slips after 40 years of growth
- US Secret Service Cartagena scandal 'involved 20 women'
- Colombia summit prostitutes scandal 'an embarrassment'
- Tornadoes kill five in US Midwest
- Trayvon Martin: George Zimmerman appears in court
- Trayvon Martin: George Zimmerman charged with murder
- Charles Manson parole hearing due
- Bolivia 'to end Brazil firm's contract for Amazon road'
- Mega Millions: School employees win Maryland jackpot
- Trayvon Martin: Prosecutor decides against grand jury
- Now he's after the Trekkie vote! Obama gives Vulcan salute in Oval Office during Star Trek icon's visit
- Supreme Court ends three-day Obama healthcare debate
- Obama in push for 'world without nuclear weapons'
- Trayvon Martin: Police chief temporarily steps down