Sao Paulo: Pele was in stable condition in a hospital after undergoing surgery for an enlarged prostate, doctors said, just the latest health scare for the Brazilian football legend.

The 74 year old had the surgery Tuesday and is to have tests to see when he can be released from the Albert Einstein Hospital in Sao Paulo, the same facility that treated him for two weeks last year for a urinary infection.

Brazilian football great Pele stable after surgeryPele. Pic/AFP

It said he was resting in his room after a 'transurethral resection of the prostate,' or TURP. The Urology Care Foundation says the surgery 'has excellent outcomes and is the gold standard' in caring for benign prostatic hyperplasia, or non-cancerous enlargement of the prostate, a common condition in aging men.

Brazilian media reports said the surgery was aimed at preventing a repeat of the urinary infection that put him in hospital last year. That health scare, which included five days in intensive care, came after he underwent surgery for kidney stones on November 13.

After developing an infection, he was readmitted to hospital. His only kidney - the other was removed following a rib injury during his playing days -- had stopped working and he had to be treated with hemodialysis, a procedure that involves filtering a patient's blood through an artificial kidney.

After a hospital stay that worried fans worldwide, he was released on December 9, walking gingerly but joking with reporters: "I am preparing for the Olympics!" Pele, whose real name is Edson Arantes do Nascimento, is widely regarded as the greatest player of all time.

The only player to win three World Cup titles, he was named the athlete of the century by the International Olympic Committee in 1999.