Beyonce Knowles and Bono were among global stars who performed at Nelson Mandela's South Africa gig to boost the fight against Aids.
Bono and Beyonce entertained the crowds
The five-hour charity show, at the Greenpoint Stadium in Cape Town was broadcast on the web.
The duo sang American Prayer, accompanied on the guitar by U2's The Edge and Eurythmics' Dave Stewart.
The show, organised by the Nelson Mandela Foundation, also featured Eurythmics, The Corrs and Queen.
Bono said his song with Beyonce was about asking "churches to open their doors, to give sanctuary that breaks the stigma that goes with being HIV positive".
He added: "If God loves you, what's the problem?"
He then brought former South African President Mr Mandela onto the stage, prompting the biggest cheer of the evening.
Mr Mandela, 85, who watched the show alongside his wife Graca Machel and US TV presenter Oprah Winfrey, has said Aids is a bigger challenge than apartheid.
In South Africa there are more people living with HIV/Aids than anywhere else in the world, and globally the number of those infected is now more than 42 million.
"Aids is no longer just a disease. It is a human rights issue," said Mr Mandela.
"46664 was my prison number for the 18 years that I was imprisoned on Robben Island. I was supposed to be reduced to that number."
He added that "millions of people infected with HIV and Aids are in danger of being reduced to mere numbers unless we act. They too are serving a prison sentence for life so I have allowed my prison number to help drive this campaign".
Thousands of music fans lined the stage for the outdoor show, which featured a huge sculpture of Mr Mandela's head.
Bob Geldof, who was knighted for his work to overcome famine in Africa with the Live Aid show in the 80s, also sang and spoke to the crowds.
"Aids has ceased to be something to be ashamed of - it's just another medical condition, but if the condition is medical the solution is political. And that's what we're here to reinforce today," he said.
The overall aim for the show was to make it the most widely distributed and broadcast programme on HIV/Aids ever, reaching a global TV, radio and online audience of about two billion.
It could be viewed for free on the campaign's website at www.46664.com and each song performed is downloadable online for 69p.
Baaba Maal [pictured]
Ladysmith Black Mambazo
Yvonne Chaka Chaka
Peter Gabriel sang his song, Biko, with the Soweto Gospel Choir, saying he was delighted he now had the "chance to sing it in this country".
Steve Biko, a leader of the black consciousness movement in South Africa, died of major head injuries in South African police custody on 12 September 1977.
And British R&B star Ms Dynamite threw condoms into the crowd in between songs, and sang: "Don't throw your life away."
The concert also featured recorded messages from well-known faces including former US President Bill Clinton, Robert De Niro, Sir Ian McKellen and Annie Lennox.
And crowds heard a song requested by Mr Mandela, who asked Dave Stewart of Eurythmics and the late Joe Strummer to write a song including 46664 in its lyrics for the show.
Stewart finished the song, Long Walk to Freedom, with Bono earlier this year and they performed it for the crowds, paying tribute to Strummer, who died last December.
46664: BEHIND THE SCENES
Global net service providers and music portals worked with net company Tiscali to show the gig free
Streamed live in 14 European countries and South Africa
Other major net service providers and broadcasters like BBCi, Real Networks and MTV Online also streamed it
Cash is raised through donations, tracks downloaded and sales of a DVD and CD of the gig
Tracks can ordered by telephone around the world
Another song which had its debut was a track by Queen, called Invincible Hope, which features samples of Mr Mandela's voice, prompting the band members to joke that he had become a rap artist.