Grande took the stage on Sunday at the Empire Polo Club in Indio, Calif., where she performed songs from her latest album, Thank U, Next.
Minaj later arrived to the scene to perform with Grande their song "Bang Bang." Diddy and Mase also made surprise appearances to perform the late Notorious B.I.G's "Mo Money Mo Problems." The set included a tribute to deceased rappers, including B.I.G., Tupac Shakur, Nipsey Hussle and Grande's former boyfriend Mac Miller.
'NSYNC posted on Twitter a selfie they took with Grande from the event.
Grande teased working with 'NSYNC on Instagram recently, posting a video of herself lip-syncing the lyrics to the group's song "Tearin' Up My Heart" and a video of herself as a child at one of their concerts.