NEW YORK, NEW YORK - JUNE 14:  Jesse Tyler Ferguson (L) and Taylor Swift perform at AEG and Stonewall Inn's pride celebration commemorating the 50th anniversary of the Stonewall Uprising. AEG has pledged its support to SIGBI's development of an LGBTQ+ anti-bias training standard. #EqualityForAll #BetterAsOne (Photo by Craig Barritt/Getty Images for AEG)
PHOTO: Craig Barritt/Getty Images
NEW YORK, NEW YORK - JUNE 14: Jesse Tyler Ferguson (L) and Taylor Swift perform at AEG and Stonewall Inn's pride celebration commemorating the 50th anniversary of the Stonewall Uprising. AEG has pledged its support to SIGBI's development of an LGBTQ+ anti-bias training standard. #EqualityForAll #BetterAsOne (Photo by Craig Barritt/Getty Images for AEG)
Now playing
01:49
Look back at Taylor Swift's most influential moments
PHOTO: Samantha Hartsoe
Now playing
02:24
Woman's bathroom mirror discovery goes viral
PHOTO: @neiltyson
Now playing
02:15
Colbert pokes fun at Neil Degrasse Tyson for vaccination photo
PHOTO: Stuart Weitzman
Now playing
00:39
Serena Williams and her daughter twin in new fashion ad
snl.fauci.vaccine.orig_00005420.png
snl.fauci.vaccine.orig_00005420.png
Now playing
01:24
'SNL' has 'Dr. Fauci' helping people get vaccinated
PHOTO: Instagram Lady Gaga
Now playing
00:56
Lady Gaga's 2 dogs returned home safely, LAPD says
PHOTO: Lewis Speaks
Now playing
01:13
Principal helps student with haircut issue
The Pokémon Company announced new games during its 25th Anniversary Celebration
PHOTO: The Pokémon Company
The Pokémon Company announced new games during its 25th Anniversary Celebration
Now playing
01:01
See the new Pokémon games coming soon
PHOTO: Maui63
Now playing
01:35
World's rarest marine dolphin finds protection in this flying friend
PHOTO: ABC's "Jimmy Kimmel Live!"
Now playing
01:46
Watch people struggle to identify second gentleman Doug Emhoff
PHOTO: nickelodeon/from youtube
Now playing
01:33
'Real World,' 'Frasier,' 'Spongebob:' See the reboots coming to this new streaming service
PHOTO: "The Late Late Show with James Corden" / Youtube
Now playing
01:37
See Prince Harry and James Corden tour LA on open-air bus
PHOTO: Harry Langdon/Archive Photos/Getty Images
Now playing
02:24
How Jane Fonda sparked a fitness revolution
jill biden kelly clarkson divorce advice orig mg_00001210.png
PHOTO: NBC / The Kelly Clarkson Show
jill biden kelly clarkson divorce advice orig mg_00001210.png
Now playing
01:12
Jill Biden opens up about divorce on Kelly Clarkson show
Fans Celebrate In Los Angeles After Lakers Win NBA Finals
PHOTO: (Photo by Brandon Bell/Getty Images)
Fans Celebrate In Los Angeles After Lakers Win NBA Finals
Now playing
01:14
Kyrie Irving says Kobe Bryant should be the NBA logo
PHOTO: 'GMA' / ABC
Now playing
01:56
Britney Spears' dad Jamie speaks out about conservatorship via lawyer on 'GMA'
(CNN) —  

Taylor Swift gave a surprise performance Friday night at the Stonewall Inn and wished the crowd at the site of the LGBTQ rights landmark a happy Pride Month.

The gay bar in New York’s Greenwich Village was holding an event celebrating the 50th anniversary of the 1969 Stonewall uprising, which was a catalyst for the gay rights movement.

“I was totally shocked because it’s such a small space. Everyone went crazy!” said Kyle Luker, who shot video of the Grammy-winning singer playing “Shake It Off.”

He’d been at the club for about 90 minutes when Swift came on stage.

Actor Jesse Tyler Ferguson emceed the event and joined Swift on stage to dance and sing along.

The “Modern Family” star thanked Swift on Twitter.

“I’m so happy I don’t have to keep this secret any longer. Look who came to celebrate the 50th anniversary of Stonewall at the Stonewall Inn. @taylorswift13, you are a gem. Thank you for everything you do for the LGBTQ community. We (heart emoji) you!” he wrote, ending the tweet with a rainbow emoji

Friday was a busy day for Swift.

She also released a new single from her upcoming album, “Lover,” which is scheduled to come out August 23.

A video for the song “You Need to Calm Down” drops Monday.

The song’s lyrics challenge internet bullies and express support for the LGBTQ community.

In April, Swift donated $113,000 to the Tennessee Equality Project, a pro-LGBTQ advocacy group.