Singer Ed Sheeran has revealed that he has co-written a song with former Fifth Harmony star Camila Cabello.

The 26-year-old musician said he penned the lyrics with the songstress for the song The Boy from her upcoming debut solo album 'The Hurting. The Healing. The Loving.', reported Billboard.

"I know what I want Camila to do as a singer… I sent off the lyrics to her, she took it apart and made it sound like her…

"(She) changed 90 per cent of the lyrics on it. I know it will be really fun," Sheeran said.