Pele has left a Sao Paolo hospital after undergoing prostate surgery.
The 74-year-old Brazil soccer legend was admitted to the Albert Einstein Hospital in Sao Paolo on May 5 for the second time in six months.
He was named FIFA’s Player of the Century and won 91 caps for Brazil, scoring 77 goals.
Widely regarded as the greatest player of all time, Pele scored a world record 1,281 goals in 1,363 appearances during his 21-year career.
He played 14 games at the World Cup, scoring 12 goals, and was awarded the FIFA Golden Ball as the best player at the 1970 tournament.
Pele has only one kidney, having had one removed towards the end of his playing career.