SAN FRANCISCO — Hundreds of thousands of people packed gay pride events Sunday from New York to San Francisco, with overall attendance in the millions for what amounted to a celebration of a freshly endorsed right to marry.
Governor Andrew Cuomo of New York officiated at the wedding ceremony of a same-sex couple in Manhattan. It was held in front of the Stonewall Inn, where gay bar patrons stood up to a police raid in 1969, launching the modern gay rights movement.
David Contreras Turley, who worked as part of the coalition to pass the marriage equality law in New York State, exchanged vows with Peter Thiede, a UBS analyst.
‘‘Today is a good day because at the end of the day, love wins today. And any day that love wins is a good day,’’ Cuomo said before asking the couple to join him on stage, adding that he was slightly nervous, since ‘‘this is my first marriage.’’
State law did not allow Cuomo to officiate at wedding ceremonies until last week. The authority to do so was granted as part of a slew of legislation passed days ago.
Before the wedding ceremony, attorney Roberta Kaplan spoke to the crowd. Kaplan represented Edie Windsor in a case in which the Supreme Court issued a ruling against the federal Defense of Marriage Act, which had banned federal benefits for same-sex couples.
Cuomo said New York played a role in getting same-sex marriage recognized nationwide by legalizing it in the state in 2011.
‘‘New York passed marriage equality and people waited to see what happened.’’ Cuomo said. ‘‘And you know what? The sky didn’t fall and the earth didn’t stop spinning and there wasn’t anarchy and good people came together and are sharing their lives.’’
In the New York pride parade, hundreds of thousands of spectators stood behind police barricades, many holding up signs that read, ‘‘Thank you, Governor Cuomo.’’ The governor supported the state’s Marriage Equality Act.
Greenwich Village was awash in rainbow colors Sunday — from flags and balloons to boots and hair.
In San Francisco, a parade that at times resembled a rainbow-colored dance party snaked through downtown. Cheerleaders, dancers, and proud families of lesbians and gays swooped up Market Street as spectators flocked 10 to 15 people deep along both sides.
SF Pride Board president Gary Virginia said the exuberance was amplified by the Supreme Court ruling that same-sex couples can wed in all 50 states.