The 'Happy' hitmaker has produced a new track, 'It's On Again', which features Alicia and Kendrick and will appear on the soundtrack for upcoming superhero action movie, 'The Amazing Spider-Man 2'.
Acclaimed Hollywood score composer Hans Zimmer is overseeing the project and has worked with the talented trio on the song.
Alicia said: ''I'm very excited to be a part of such a powerful collaboration with Kendrick Lamar, Pharrell Williams and Hans Zimmer.
''This is the next chapter in the 'Spider-Man' legacy and we really feel 'It's On Again' captures the experience, the story - and most importantly - the meaning behind the film, which is that we all have the potential to be extraordinary. There's a little bit of a super hero in all of us.''
'No One' singer Alicia provides the main vocals on the track, but Grammy-nominated rapper Kendrick is heard in one of the verses.
Pharrell gushed about his collaborators, saying: ''Hans has created an iconic score theme and it was exciting to collaborate with him again on this song. When I was making the song, I knew Alicia and Kendrick had to be on it. They take the song to a whole new level.''
The singer-and-producer was recently nominated for an Oscar for his last soundtrack song, 'Happy', which appeared in 'Despicable Me 2'.
In addition to 'It's On Again', Pharrell, 40, also enlisted Alicia for 'Know Who You Are', taken from his just-released second studio album, 'G I R L'.