Santos FC said more than 230,000 people had attended his 24-hour wake in the Vila Belmiro stadium, where a steady stream of mourners continued straight through the night.
Lula, who took office Sunday in a ceremony that started with a minute’s silence for Pele, flew in by helicopter for the wake, greeting Pele’s widow, Marcia Cibele Aoki, who was in tears.
Visibly moved, the president and First Lady Rosangela “Janja” da Silva paused before Pele’s coffin and embraced Aoki and other family members.
“Goodbye to the King. Rest in peace, Pele,” the president later wrote on Twitter.
Pele, the only player in history to win three World Cups, scored a world record 1,281 goals during his more than two-decade career with Santos (1956-74), the Brazilian national team and the New York Cosmos (1975-77).
He died Thursday at age 82 after a battle with cancer.
His wake ended with a brief Catholic service, after which 10 state police guards in dress uniform placed the lid on his black casket.
Draped in the flags of Santos and Brazil, the coffin was then hoisted to the top of a bright red fire truck for a massive funeral procession through the streets of Santos, including past the house of Pele’s mother, 100-year-old Celeste Arantes.
The funeral cortege will end at the port city’s Memorial Cemetery, where a Catholic funeral service will be held before Pele is interred in a 10-storey mausoleum that holds the Guinness World Record as the tallest cemetery on Earth.
– ‘Pele was everything’ –
Born Edson Arantes do Nascimento, Pele exploded onto the scene at age 15, when he made his professional debut with Santos.
He went on to win the World Cup three times with Brazil, in 1958, 1962 and 1970.

Man City need to 'step up' as striker's goal run ends
'People are afraid' - why 'juggernaut' Arsenal are team to beat
Aspinall requires further tests on eye injury in UK
Real Madrid impress but Vinicius tension grows - Clasico talking points
Rooney says struggling Liverpool lack leadership
NOC To Host FinalIOC Advanced Sport Management Course Module
4 Teams Lock Horns For N10m Tiger 5-Aside Football Battle In Awka
Nezianya, Odikpo, Balepo, Ndukuba, Chukwuleta For SWAN @60 Veterans’ Awards
Anambra FA Crisis: Igbokwe, 61 Years Old Football Administrator Protests Arrest, Detention
Gala European record thrills Osimhen
La Liga: 'I am enjoying football at Barca', Rashford eyes permanent move
CAF nomination thrills Flying Eagles captain
Rangers International going, going . . . (63,273 views)
Amaju Pinnick: A cat with nine lives (54,478 views)
Second Term: Amaju Pinnick, Other NFF Heavyweights Home to Roost •How Pinnick Broke the Jinx (52,428 views)
Current issues in Nigerian sports: Matters arising (52,036 views)
Sports Development: Zenith Bank on the zenith (52,015 views)
Missing $150,000 IAAF Grant: Solomon Dalung’s Hide and Seek game (51,988 views)
Gov. Abdullahi Ganduje’s solid footprints, commitment to sports development in Kano State (51,818 views)
NFF Presidency: Pinnick, Maigari, Ogunjobi, Okoye in Battle for Supremacy (51,397 views)
Olopade, BET9A wave of revolution in NNL (50,512 views)
Commonwealth Games 2018: Shame of Muhammadu Buhari, Solomon Dalung (49,052 views)
Ibrahimovic’s Man U exit: Whose decision is it? And in whose interest? (47,491 views)
John Mikel Obi: Segun Odegbami’s Outrageous Call! (46,953 views)