Late night had basketball fever on Monday, as Jimmy Fallon and James Corden's most viral segments starred two NBA greats.

On "The Tonight Show with Jimmy Fallon," which was filmed in Orlando last night, Shaquille O'Neal took on the host in his infamous "Lip Sync Battle" competition.

The b-ball icon rocked out to Bobby Brown's "My Prerogative" with the help of one energetic audience member and surprise backup from Pitbull, while Fallon tried one-upping him by playing both the male and female parts in "Beauty and the Beast."

The segment ended with the two performing Elton John and Kiki Dee's "Don't Go Breaking My Heart."

Over on "The Late Late Show with James Corden," the host recruited Golden State Warriors star Steph Curry for a version of "Carpool Karaoke."

The 10-minute segment showed Corden giving Curry some very important life lessons on how to "make every aspect of his life great," with a training stop at a mini golf course and a Disney jam session to "How Far I'll Go" from "Moana" and "Love Is an Open Door" from "Frozen."

The singing begins around the 6:14 mark. Prepare to swoon.