The 23-year-old singer's recent single 'Sing' was produced and co-written by the 'Happy' hitmaker, and it required a different way of working for the British star.
Ed explained: ''Working with Pharrell was a different way of writing a song for me. It was completely new but a good way of writing.
''He brought in the bass, hook and the drums and then I wrote all the top line.
''I was wary at first but now I am really happy about that song.''
Some of Ed's new album 'x' - which is pronounced 'multiply' - was produced by the legendary Rick Rubin and the 'Drunk' star was determined to ''impress'' when the producer first expressed an interest in working with him.
He added in an interview with The Sun newspaper: ''Rick came in late. He came to gigs and expressed an interest but it was only in August when he invited me around his house in Malibu. I had my guitar with me and he asked me to play and I work best in those situations where you want to impress. He reassessed where I was with the album and came on board.
''He took all the bulls**t away and made me play all the songs as live and kept the raw element to the album.''
In honour of the arrival of the royal baby...
The Vanity Project reveal the truth about their unique aesthetic.
ATR hit Islington's O2 Academy tonight to fully display their importance to thrilling effect.
These artists are no-one's guilty pleasure.
Rocks was released on this day (May 3) in 1976.
Daughters in the current climate are stronger than ever following last year's You Won't Get What You Want.
Je t'aime Taylor Swift's latest video for her new single 'Me!' featuring Brendon Urie of Panic! At The Disco.
Celebrating the wonders of Jazz music.
As it's been 12 years since the last Bridget Jones movie, expectations aren't too high...
Bridget has always known how to get herself into a muddle - catastrophic muddles at...
After battling the dating scene and finally finding love with Mark Darcy, Bridget Jones is...
In July of 2015, Ed Sheeran played his biggest gigs to date, selling out Wembley...