‘American Idol’ Finale: Jamie Foxx, NKOTB, Pitbull, the Jacksons Help Ring in Winner

Former and current judges Steven Tyler, Jennifer Lopez and Keith Urban also perform

Last Updated: May 14, 2015 @ 1:56 PM

(Spoiler alert: Please do not read if you’ve not watched Wednesday’s episode of “American Idol”)

The 14th winner of “American Idol” was crowned on Wednesday when Nick Fradiani beat out Clark Beckham to take the title in the next to last season of the Fox singing competition.

But before the aspiring star had his name announced by host Ryan Seacrest and got to perform his upcoming single “Beautiful Life” to the cheering crowd, a slew of hot artists amped up the excitement at the Dolby Theatre in Hollywood.

More highly anticipated than the result itself was a performance by New Kids on the Block, as they reunited to teach former “Idol” contestant Daniel Seavey their hot moves from “Step by Step” and “You Got It (The Right Stuff).”

Earlier in the show, The Jacksons (Marlon, Jessie, Tito and Jermaine) made 16-year-old finalist Tyanna Jones’ dreams come true as she got to perform a medley of hits with her personal idols.

Newcomer Prince Royce got a surprise visit on stage from “Idol” judge Jennifer Lopez and Pitbull as they all told fans to “Back It Up.”

Steven Tyler/Getty Images

Steven Tyler/Getty Images

Next, Keith Urban got a chance to show off his singing skills with “Even the Stars Fall for You,” after walking the red carpet with movie star wife Nicole Kidman, who later cheered him on from the crowd.

“The Hours” actress wasn’t the only Oscar winner in the house, as Jamie Foxx next performed a duet with former contestant Rayvon Owen. The “Ray” star redeemed himself for his divisive rendition of the National Anthem before the Floyd Mayweather-Manny Pacquiao fight with a soulful piano duet.

Former judge Steven Tyler also performed after saying earlier in the day that he’d return to the show if offered enough money.

Clark Beckham/Getty Images

Clark Beckham/Getty Images

When it came to Beckham and Fradiani, they both performed with Fall Out Boy and Pete Wentz before the final results were announced.

While fans only have one more year of the show to watch, host Ryan Seacrest assured them that the “‘Idol’ family is sticking together for our final … farewell season.”

Fox revealed Monday morning that “Idol” would be returning for one last gasp next year, concluding its run with a 15th season.