Meghan Trainor’s Dreams Come True as She Performs ‘I Want It That Way’ with the Backstreet Boys

WATCH: Justin Bieber, Nick Jonas, Meghan Trainor Get in Bed for SFW 'Famous' Video
It seems that more celebrities want in on Kanye West's "Famous" music video, but on their fully-clothed terms

Meghan Trainor was able to check something major off of her bucket list last night: she got the chance to perform with the Backstreet Boys.

The incredible pairing came courtesy of ABC’s new show Greatest Hits, which pairs hit makers from the past with today’s popular singers for an amazing performance. Before taking the stage, Trainor admitted to the cameras that she was nervous to perform with the group she idolized as a child.

“My first band that I loved was the Backstreet Boys,” she explained. “My pop star crush was Brian [Littrell]. I was gonna marry him and my mom was gonna marry him. That was our husband. The day he got married, I remember we were like, ‘Nooo!’”

Trainor, along with all five Backstreet Boys, Nick Carter, Kevin Richardson, A.J. McLean, Brian Littrell and Howie Dourogh, graced the stage in matching white blazers as the belted out the ’90s hit “I Want It That Way.”

After filming the show, Trainor took to Instagram to share her excitement.

Luckily for her, the band was just as excited and even teased a possible future collaboration.

Loved performing with you @meghan_trainor! Now let's talk about that duet….

A video posted by backstreetboys (@backstreetboys) on

Launch the video up top to see the entire performance.