Edinburgh Zoo's male giant panda has had both testicles removed after tumours were discovered by keepers.
Yang Guang is said to be "recovering well" from the surgery, which took place on Saturday.
He had arrived at Edinburgh Zoo in 2011 with female Tian Tian as part of a conservation breeding programme, which was halted earlier this year.
The zoo said the tumours had not been a factor in the failure of the pandas to produce a cub.
After years of failed attempts to produce a cub, the panda breeding programme was suspended earlier this year.
At the time, zoo officials said they wanted to make enhancements to the giant panda enclosure and take time to analyse the data before any future breeding attempts.
Darren McGarry, head of living collections at the zoo, said it would discuss the next steps, including future breeding possibilities, with its partners in China over coming weeks.
"Testicular tumours have previously been reported in giant pandas. The tumours we removed developed recently, so they have not been a factor in Yang Guang and Tian Tian not having had a cub."