Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

Kesha delivered an emotionally gripping performance of her song "Praying" at the Grammy Awards on Sunday in a nod to the #MeToo movement against sexual misconduct.

The performance came after fans reacted angrily to the song's loss to Ed Sheeran's "Shape of You" in the best pop solo performance category.

Kesha wrote "Praying" amid lawsuits against her former producer, Dr. Luke (Lukasz Gottwald), whom she has accused of sexual and emotional abuse.

Kesha sued Gottwald — who has denied the allegations — in New York State Supreme Court in 2014. A judge threw out the case two years ago.

The irony is that the Grammys had a #metoo moment, pretending they care about women when they let Kesha, who’s nominated song was about surviving rape and abuse, lose to Ed Sheeran, who’s nominated song was about objectifying a woman’s body.

& he had the discourtesy to not show. — Diamond Heart (@ARTPOPheaux) January 29, 2018

Kesha really did go through hell and back to release Praying and get nominated for a Grammy, only to lose to an Ed Sheeran song about how he likes a woman's body over a Sia sample #GRAMMYs — greedyforari (@greedyforari22) January 29, 2018

"Ed Sheeran" is a hell of a way to mispronounce "Kesha." — Marc (@MarcSnetiker) January 29, 2018

When "Praying" was released in July, it was the singer's first single since 2014. When the song lost to "Shape of You" on Sunday, observers berated the show, pointing out, among other things, that Sheeran wasn't even there to accept the award.

During the performance of "Praying," Kesha was surrounded by other female singers dressed in white — a symbol of "hope, peace, sympathy and resistance," according to Atlantic Records Chairwoman Julie Greenwald.

After the song, the women collapsed into a group hug as Kesha appeared to wipe tears from her face.