The ad, called "shuffle", features a group of six teenagers playing for the last three bottles of Pepsi being sold by a newsstand vendor.
The teenagers morph into a range of different characters as they take possession of the ball in the impromtu match before finally becoming a famous footballer.
The spot, which was created by CLM BBDO Paris, also stars Frank Lampard, Cesc Fabregas and Thierry Henry.
It ends with Beckham scoring the winning goal, as the goalkeeper, played by a sumo wrestler, is distracted by Ronaldinho, who morphs into a beautiful geisha to distract the keeper while Beckham places his shot.
The ad is part of a wider campaign called "Choreography", which was launched around the world last month.
Pepsi said the spot celebrates the idea that "life offers endless possibilities". The wider campaign encourages viewers to participate in a football competition the soft drinks giant is running on a dedicated website at .