Macklemore & Ryan Lewis were joined by Madonna for a historic performance of their LGBT equality anthem Same Love at the Grammys last night (January 26).

Some 34 couples, gay and straight, were married onstage during the performance in a mass wedding ceremony officiated by Queen Latifah. “This song is not a love song for some of us, but for all of us,” Latifah told the audience at the Staples Centre in Los Angeles.

After the couples had exchanged rings, Madonna took to the stage as Same Love segued into her own song Open Your Heart. She took the lead on a slowed-down version of her classic 1987 hit before trading vocals with singer Mary Lambert on a few bars of Same Love.

“I mean, I wouldn’t do any old song with any old artist,” Madonna told Ryan Seacrest on the red carpet beforehand. “But history is going to be made tonight.”