• BREAKING NEWS ABC shows live and on-demand -- Download the WATCH ABC app!

OTRC: Jon Bon Jovi, Prince William, Taylor Swift sing 'Livin' On A Prayer'

A rock god, a prince, and a pop princess gave quite the performance at recent charity event in London.

Prince William, the 31-year-old Duke of Cambridge and future heir to the British throne and Swift, 23, took to the stage at the Winter Whites Gala, benefitting Centrepoint, at Kensington Palace in London on Tuesday to join Bon Jovi, 51, as he performed his band's 1986 hit "Livin' On A Prayer." It marked Swift's first appearance at a royal event.

He sang the 1994 acoustic version of the popular rock anthem -- although William and Swift sang the original, hard rock rendition of the chorus.

Swift also performed at the event. She sang her hits "I Knew You Were Trouble," "Love Story" and "Fifteen," according to MTV News, which quoted her as telling the audience: "It is my first time playing at Kensington Palace, or any other palace for that matter ... I have to thank you, Prince William, for having me."

The prince, she said, "was very funny."

Swift wore an outfit fit for a princess -- a dazzling off-the-shoulder Reem Acra Spring 2014 gown made up of a nude bodice with lace and metallic embellishments and an ivory chiffon skirt.

(Check out more PHOTOS of Jon Bon Jovi, Taylor Swift and Prince William at the gala, including a picture of Bon Jovi with his beautiful family!)

At the gala, Bon Jovi received the Centrepoint Great Britain Youth Inspiration Award for his humanitarian work. Prince William is a patron of Centrepoint, a charity that helps young homeless people. His wife Kate, the Duchess of Cambridge, and their son Prince George did not attend the event.

Watch a video of the trio's performance at the event.

(Copyright ©2018 OnTheRedCarpet.com. All Rights Reserved.)