Harry Styles and Meghan Trainor have written a song for Michael Buble's new album.

Harry Styles

Harry Styles

The 40-year-old singer recruited the One Direction star and 'No' hitmaker for the track called 'Me Too' from his eagerly-anticipated ninth studio LP, 'Nobody But Me'.

He revealed: "For the first time ever, I've recorded an original (song) that I didn't write. It's written by Meghan Trainor and Harry Styles."

The 'Haven't Met You Yet' hitmaker was full of praise for the 22-year-old pop beauty and said most people have no idea she is an "incredible" songwriter and "badass" producer.

Michael - who has two-year-old Noah and six-month-old Elias with his wife Luisana Lopilato, 29, - told ET Canada: "Listen, she's a great singer and a great entertainer.

"What [people] may not know is what an incredible writer she is, what an incredible musician she is, [and] the fact that she's a badass producer."

The 'All About That Bass' songstress previously revealed she was left red-faced when she performed a love song in front of Harry, 22, because he was one of the first famous people she ever met.

Of their encounter, she explained: "Performing a love song in front of Harry is terrifying, and on top of that I was a little nervous because he was one of the first celebrities I met."

And getting to work with Michael was a dream come true for the blonde beauty, who said should love to work with him or Bruno Mars.

She previously said: "You know I would love to sing with Michael Buble or Bruno Mars, I always sing along to their records and I'm like, 'Sounds great! We should do this!' and my mom would always say, 'You and John Legend would sound great together!' So when that happened it was one of those moments like, 'Oh my gosh!'"

'Nobody But You' is out on October 21.