In any other life, their paths might never have crossed. But on Tuesday, the most powerful people in the world sat with some of the least powerful — men, women and children struggling to survive — and for one rainy afternoon they shared something in common: their adoration for Nelson Mandela.

Together they remembered the anti-apartheid icon, in a boisterous ceremony at a soccer stadium in an emotional place — Soweto — where the challenges of black South Africans helped bring down white minority rule nearly 20 years ago. Together they sang and clapped, memorializing Mandela as a racial healer, a figure so humble and transcendent that he felt comfortable with rich and poor, young and old, black and white.

“Over 30 years ago, while still a student, I learned of Mandela and the struggles in this land,” President Obama said in his eulogy at the stadium, where tens of thousands endured a steady rain. “It stirred something in me. It woke me up to my responsibilities — to others, and to myself — and set me on an improbable journey that finds me here today. . . . He speaks to what is best inside us.”

[Explore Obama’s speech.]

Nomathemba Mapengeza, 55, a nurse from Soweto, said she, too, had learned to be a better person, to set aside the hatred that she felt for the whites who subjugated her and her ancestors, and to reconcile with her nation’s ugly past.

The Washington Post's Sudarsan Raghavan shares scenes from the memorial for former South African president Nelson Mandela in the late activist's home country. (Sudarsan Raghavan/The Washington Post)

“He taught us to love one another,” said Mapengeza, swaying to the music of a South African choir on the field. Moments later, a group of youths, black and white, marched by her, chanting, “Mandela, yo. Mandela, yo.” Mapengeza began chanting, too.

The four-hour service was filled with emotional tributes and joyous song. The rich crowded with the poor, children with the elderly, all to remember Mandela, who died Thursday at age 95.

“Only Mandela can bring together people of different races, cultures, even religions,” said Nkuli Simelane, 30, a tour guide. “He didn’t want blacks to be on one side and the rich on one side. He wanted everyone to be together.”

Gen. Thanduxolo Mandela, a family member, echoed those sentiments in his eulogy. “In his lifetime, Madiba mingled with kings, queens and presidents. At the core, he was a man of the people. A simple man,” said the general, referring to Mandela by his Xhosa clan name. “I am sure Madiba is smiling from above as he looks down at the multitude of diversity gathered here, for this is what he strove for — the equality of man, the brotherhood of humanity.”

[See which heads of state attended.]

Many in the stadium carried umbrellas and South African flags, or were draped in the green, yellow and black colors of the ruling African National Congress. Some blew plastic horns known as vuvuzelas. Others unfurled large banners bearing Mandela’s face. Two giant television screens alternated between showing images of Mandela and the dancing crowds.

Although the voices of the crowd seemed to fill the stadium, many of the uncovered seating areas remained empty, perhaps because of the downpour. The covered sections were filled. Tuesday’s ceremony included prayers by leaders of several faiths and remarks by four of Mandela’s 18 grandchildren.

“You have lived a beautiful life. You bequeathed us a better world than the one you were born in,” Nkosazana Dlamini Zuma, chair of the African Union Commission, said in her eulogy. “We thank you for having mentored us.”

A gathering of leaders

More than 90 heads of state and governments attended the ceremony at the First National Bank Stadium, more than those who attended the 2005 funeral of Pope John Paul II. The list of dignitaries included former U.S. presidents George W. Bush, Bill Clinton and Jimmy Carter. Many African leaders also came. Other leaders arrived from as far away as Afghanistan, Australia and Scandinavia. Scores of police were stationed outside and inside, inspecting bags and keeping watch.

Brazilian President Dilma Rousseff, one of several world leaders who gave eulogies, called Mandela a “source of inspiration” for freedom struggles in Brazil and throughout South America. “His fight reached way beyond his nation's border and inspired young men and women to fight for independence and social justice,” Rousseff said through an interpreter.

[Read: By shaking Castro’s hand, Obama avoids awkward slight.]

The stadium is where Mandela was last seen in public, during soccer’s World Cup competition in 2010. It was a fitting place to say farewell, not only because of its size but the symbolism of its location, in Soweto. The former segregated township was at the center of the anti-apartheid protests in the 1970s and 1980s. Mandela, who owned a house in Soweto, became South Africa’s first black president in 1994, after the nation’s first multi-racial elections.

Leonard Teboho, 32, whose
T-shirt was emblazoned with Mandela's face and the slogan “father of the nation,” said his mother received a house from the government when Mandela was president. It was the first home the family had ever owned. And although he is unemployed at the moment, Teboho said he had come to thank Mandela for a better life. “We are here not to mourn but to celebrate his life,” he said.

Francois Pienaar, the captain of the South African rugby team that won the 1995 World Cup, described the ceremony as “very emotional, very happy, very sad, painful and reflective.”

“To see all these people come out to say farewell is very special,” said Pienaar, who worked closely with Mandela to use the World Cup victory to reconcile a nation divided by its past. He said that he last saw Mandela three years ago and that he will always remember the leader’s broad smile.

“It was a beautiful smile. He was so genuine,” Pienaar said. “He was a real person.”

‘A motivation for our kids’

After Tuesday’s ceremony, Mandela’s body will lie in state for three days in the Union Buildings in the capital, Pretoria, once the epicenter of white rule. On Sunday, he will be buried in his ancestral village of Qunu, in the Eastern Cape.

Other stadiums in the Johannesburg area were equipped with giant screens to accommodate people who could not get to the stadium where the ceremony was taking place. At one, Ellis Park Stadium, only a few people gathered, perhaps because of the wet weather.

On Tuesday, both the powerful and the ordinary expressed hope that Mandela’s legacy will live on.

“He was a motivation for our kids,” said Rosinal Kawana, who works at a supermarket.

And said Obama: “We will never see the likes of Nelson Mandela again. But let me say to the young people of Africa, and young people around the world: You can make his life’s work your own.”

By 4:30 p.m., everyone had exited through the same gates of the stadium — the rich and powerful to their shiny black cars, the rest to buses and trains — and returned to their separate lives.

Steven Mufson in Johannesburg and Debbi Wilgoren in Washington contributed to this report.