Brazil legend Pele has had surgery for a prostate condition after he was admitted to hospital for the second time in six months.
The 74-year-old three-time World Cup winner was treated in hospital for a urinary infection in November 2014 after having kidney stones removed.
The Albert Einstein Hospital in Sao Paulo described his condition as "stable".
An aide told AFP news agency that Pele could be out of hospital "within days".
However, the hospital did not reveal when the ex-Santos star might be discharged.
Friend and advisor Jose Fornos Rodrigues told AFP: "Everything is going well with Pele; he is resting.
"It was a very simple procedure. He will be released within a couple of days."
|Why Pele is a great|
|He scored a world record 1,281 goals in 1,363 games||Pele made 14 appearances at World Cup finals, scoring 12 goals and winning three tournaments.|
|In 1970 he picked up the Fifa Golden Ball award as the best player at the World Cup in Mexico||The forward won 91 caps for Brazil, scoring 77 goals for his country|
Pele, who has only one kidney, having had one removed towards the end of his playing career, was treated at the same hospital late last year.
Widely regarded as the greatest player of all time, Pele scored a world record total of 1,281 goals in 1,363 appearances during his 21-year career, including 77 goals in 91 appearances for Brazil.
He was also named Fifa's Player of the Century and won 91 caps for Brazil, scoring 77 goals.
He played in 14 games at World Cup finals, scoring 12 goals, and was awarded the Fifa Golden Ball as the best player at the 1970 tournament.