Sarah Ferguson, the Duchess of York, has been diagnosed with breast cancer and has undergone a successful operation, her spokesman says.
The 63-year-old, who was married to Prince Andrew, was given the diagnosis at a routine mammogram screening.
"She was advised she needed to undergo surgery which has taken place successfully," the spokesman said.
"The Duchess is receiving the best medical care and her doctors have told her that the prognosis is good."
She reportedly left the King Edward VII Hospital in Marylebone, central London – which has treated the royal family for decades, on Sunday and is said to be recovering with her family at Windsor.
"The duchess wants to express her immense gratitude to all the medical staff who have supported her in recent days," her spokesman said.
"She is also hugely thankful to the staff involved in the mammogram which identified her illness, which was otherwise symptom free, and believes her experience underlines the importance of regular screening."
Before going to hospital, she spoke about her diagnosis on her new podcast Tea Talks with the Duchess and Sarah.
It was reportedly recorded before her operation and had been due to air on Thursday, before being put off until after she was discharged.
The Sun reported Prince Andrew and their daughters Princess Beatrice, 34, and Princess Eugenie, 33, are by her side as she recovers.