"I'm very excited to be a part of such a powerful collaboration with Kendrick Lamar, Pharrell Williams and Hans Zimmer," Keys said in a statement.

"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 superhero in all of us."

The movie's director Marc Webb added: "We were looking for just the right song to close out the film - a song that would be upbeat and exciting, but also contain a note of foreboding. Alicia's song, 'It's On Again,' is the perfect end note.

The Amazing Spider-Man 2 stars Andrew Garfield in the title role

Discussing the film's score, which was helmed by Hans Zimmer and the Magnificent Six - Pharrell, Incubus' Mike Einzinger, Johnny Marr, Junkie XL, Andrew Kawczynski and Steve Mazzaro - Webb continued: "Every director wants his movie to have a unique sound, but this is beyond unique.

"It's completely unlike any movie score that's come before."

The Amazing Spider-Man 2 Original Motion Picture Soundtrack is released on April 22 in the US, and will feature new material from the Neighbourhood, Pharrell, Alvin Risk and LIZ.

The film itself hits UK cinemas on April 18, and opens on May 2 in the US.