A doctor says a 16-year-old boy has become Spain's first minor to undergo a sex change operation.

Reconstructive surgeon Ivan Manero says the procedure was carried out three weeks ago and the patient is doing fine.

Manero told a press conference Tuesday in Barcelona that the boy had felt from a very young age that he was actually female.

Manero said the patient had been undergoing hormonal and psychiatric treatment for two years, after deciding he wanted to undergo surgery to have the body of a woman.

The patient's name has not been disclosed.

The surgery was carried out under authorization from a judge, as required by Spanish law in the case of minors seeking such an operation.