Taylor Swift gave a surprise performance at the Stonewall Inn on Friday, just hours after releasing her latest anti-hate anthem “You Need To Calm Down.”

The historic LGBTQ site was holding an event to commemorate the 50th anniversary of the Stonewall Uprising, the 1969 riots that launched the gay rights movement.

Modern Family‘s Jesse Tyler Ferguson, who hosted the event, shared photos of him and the “Shake It Off” singer on his social media.

“Just sing, dance and be yourself—so I did. Last night I hosted a concert at the historic @thestonewallinn and some pretty amazing people showed up,” he captioned the photos. “I got to live my life and dance like a dad with my ❤️, @taylorswift!”

In a video shared to social media by the event’s co-organizer, entertainment group AEG, Swift says she picked to sing “Shake It Off” because she heard it was Ferguson’s favorite song to sing at karaoke.

“If there’s anything you feel like you wanna jump in on, if there’s like your part that you’re really good at, then just sing, dance, just be yourself,” she said before she burst into song. “This is a really safe space.”

It’s been quite a busy Pride Month for the Grammy winner. Her new single — which features lyrics like “Control your urges to scream about all the people you hate / ‘Cause shade never made anybody less gay” — calls out haters and homophobes.

And to kickstart the month, Swift posted a letter that she wrote to Tennessee State Senator Lamar Alexander on her social media accounts. The letter urged him to vote for the Equality Act, which protects LGBTQ people from discrimination.

“For American citizens to be denied jobs or housing based on who they love or how they identify, in my opinion, is un-American and cruel,” she wrote.

View this post on Instagram

🌈HAPPY PRIDE MONTH!!!🌈 While we have so much to celebrate, we also have a great distance to go before everyone in this country is truly treated equally. In excellent recent news, the House has passed the Equality Act, which would protect LGBTQ people from discrimination in their places of work, homes, schools, and other public accommodations. The next step is that the bill will go before the Senate. I’ve decided to kick off Pride Month by writing a letter to one of my senators to explain how strongly I feel that the Equality Act should be passed. I urge you to write to your senators too. I’ll be looking for your letters by searching the hashtag #lettertomysenator. While there’s no information yet as to when the Equality Act will go before the Senate for a vote, we do know this: Politicians need votes to stay in office. Votes come from the people. Pressure from massive amounts of people is a major way to push politicians towards positive change. That’s why I’ve created a petition at change.org to urge the Senate to support the Equality Act. Our country’s lack of protection for its own citizens ensures that LGBTQ people must live in fear that their lives could be turned upside down by an employer or landlord who is homophobic or transphobic. The fact that, legally, some people are completely at the mercy of the hatred and bigotry of others is disgusting and unacceptable. Let’s show our pride by demanding that, on a national level, our laws truly treat all of our citizens equally. 🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈🌈 Click the link in my bio to sign the petition for Senate support of the Equality Act.

A post shared by Taylor Swift (@taylorswift) on

Back in April 2018, Swift also donated $113,000 to a Tennessee LGBTQ advocacy group.

50 CELEBRITIES WHO DIED IN 2018 – TRIBUTE SLIDESHOW