Madonna performs a tribute to Prince at the Billboard Music Awards at the T-Mobile Arena on Sunday, May 22, 2016, in Las Vegas. (Photo by Chris Pizzello/Invision/AP)

Madonna serenaded the fans Sunday to end the Billboard Music Awards (see winners' list) when honoring the late Prince.

She paid tribute to Prince with the help of Stevie Wonder, ending the night with "Purple Rain."

Wearing a shiny purple suit, Madonna kicked off the tribute with a version of "Nothing Compares 2 U," which Prince wrote and Sinead O'Connor recorded. She sat in a large purple chair and was teary-eyed as she sang the song, as videos and photos of Prince were projected behind her.

Wonder, who wore a purple scarf, later joined her for "Purple Rain" as the audience at the T-Mobile Arena in Las Vegas sang along.

"Most of all thank you Prince Rogers Nelson for all that you've given us," Madonna said after the performance.

Prince died on April 21 at age 57. The icons collaborated on "Love Song" in 1989 and Madonna was met with criticism online when Billboard announced she would be the one to pay homage to The Purple One.

"All of us live in the land of music and his departure was an earthquake," Roots drummer Questlove said before the performance. "I just want to take a moment to remember the great Prince Rogers Nelson."