AMSTERDAM — Madonna on Sunday headlined the final night of the World Pride Music Festival in Amsterdam.

The gay icon took the stage shortly before 2:30 a.m. local time (8:30 p.m. ET on Saturday) during Club Confessions, a set that MISTR, a telehealth platform that offers free access to PrEP, Doxy PEP, STI testing, and long-term HIV care, organized.

“Mother is here and this is gay heaven,” said Madonna when she took the stage inside Amsterdam’s AFAS Live concert hall that can hold up to 6,000 people.

Stuart Price, who produced Madonna’s 2005 “Confessions on a Dance Floor” album and “Confessions II,” which debuted on July 2, DJed the set.

Kylie Minogue made a surprise appearance. She and Madonna performed a new remix of “Love Sensation” from “Confessions II.”

(Washington Blade video by Michael K. Lavers)

“Throughout my career, I’ve always supported efforts to fight HIV and AIDS, and that fight begins with education and access,” said Madonna in a MISTR press release. “With MISTR, (CEO) Tristan (Schukraft) is expanding access to HIV prevention and sexual healthcare for everyone. Through this work, he’s helping preserve and strengthen LGBTQ+ spaces while investing in the communities and culture that have long sustained us.”

Minogue in an Instagram post thanked Madonna, Price, Schukraft, and MISTR.

Madonna appeared at The Abbey in West Hollywood, Calif., in April. Madonna in June celebrated Pride month with a pop-up performance in New York’s Times Square.

Jake Resnicow and Insomniac produced the World Pride Music Festival that also featured Bebe Rexha and Paris Hilton, among others.

“Pride has always been about bringing our community together,” said Resnicow. “At a moment when too many people are being told to hide or make themselves smaller, gathering openly, joyfully, and without apology matters more than ever. I couldn’t be prouder of what this festival brought to life in Amsterdam — one dance floor, completely free.”