Shakira's hip-shaking set came after a lights and fireworks show, which also featured a military flyover, to bid farewell to the 2010 competition in spectacular fashion.
Ladysmith Black Mambazo also performed.
But the sports fans at Soccer City reserved their loudest cheers and rapturous applause for former South African president Nelson Mandela, who waved to the crowds from the pitch with his wife, Grace, by his side.
It was Mandela's first official public appearance at the tournament since his great-granddaughter was killed in a car accident after the World Cup opening concert, prompting him to decide against attending the first game between the host nation and Mexico due to the tragedy.
Spain beat the Netherlands with a last-gasp goal to make the final score 1-0 and be crowned World Cup champions.