NEW YORK (CBSNewYork) – Pop star Taylor Swift stopped by the Stonewall Inn in Greenwich Village on Friday night for a surprise performance of her hit song “Shake It Off.”

She rocked out on stage with actor Jesse Tyler Ferguson, who was there helping host a Pride Month celebration.

READ MORE: New Yorkers Soak Up The Sun For The Last Weekend Of Summer

The singer has recently voiced her support for LGBTQ rights.

“It’s an absolute honor to be here at the Stonewall Inn. Thank you for being so wonderful. So fun dancing with you. Happy Pride Month,” Swift told the crowd.

FLASHBACK: Madonna Surprises NYE Crowd At Stonewall Inn With Special Performance

MORE NEWS: Gabby Petito Search: Rangers Combing Wyoming Wilderness For Missing Woman, Fiancé's Whereabouts Remain Unknown

The Stonewall Inn is marking the 50th anniversary of the riots credited with launching the LGBTQ rights movement.