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.

Khan warns Paul ahead ‘life-threatening’ Joshua fight
Emery's perseverance & belief key to Villa resurgence
Agu backs Okoye for Eagles No. 1 spot
PFL contract ends soon - Ngannou
'No-one downing tools' - Alonso's stay of execution despite loss to Man City
Zaha in Ivory Coast Afcon squad but Adingra left out
UCL: Mbappé doubtful for Manchester City clash after missing training
'Give Alonso time' - but Man City visit could be pivotal
Fifa accused of breaching own rules with Trump award
Son, Simons and mini Spurs revival lift Frank's spirits
Finidi challenges Rivers United players’ mentality
Rangers International going, going . . . (63,402 views)
Amaju Pinnick: A cat with nine lives (54,646 views)
Second Term: Amaju Pinnick, Other NFF Heavyweights Home to Roost •How Pinnick Broke the Jinx (52,587 views)
Current issues in Nigerian sports: Matters arising (52,220 views)
Sports Development: Zenith Bank on the zenith (52,194 views)
Missing $150,000 IAAF Grant: Solomon Dalung’s Hide and Seek game (52,105 views)
Gov. Abdullahi Ganduje’s solid footprints, commitment to sports development in Kano State (51,950 views)
NFF Presidency: Pinnick, Maigari, Ogunjobi, Okoye in Battle for Supremacy (51,535 views)
Olopade, BET9A wave of revolution in NNL (50,676 views)
Commonwealth Games 2018: Shame of Muhammadu Buhari, Solomon Dalung (49,224 views)
Ibrahimovic’s Man U exit: Whose decision is it? And in whose interest? (47,618 views)
John Mikel Obi: Segun Odegbami’s Outrageous Call! (47,090 views)