Charles, 75, who had spent three nights in hospital for corrective procedure for an enlarged prostate, smiled and waved to crowds as he left the London Clinic on Monday accompanied by his wife Queen Camilla.
A few hours earlier, Kate also headed home after spending two weeks at the same private hospital following abdominal surgery.
Buckingham Palace said in a statement that Charles, who was visited in hospital by Camilla each day of his stay, wanted to thank his medical team and all those who had supported his hospital visit.
"The King was this afternoon discharged from hospital following planned medical treatment and has rescheduled forthcoming public engagements to allow for a period of private recuperation," Buckingham Palace said.
The 42-year-old had surgery for a non-specified, but non-cancerous, condition at the London Clinic earlier in January.
Britain's royals usually regard all medical issues as a private matter, but Charles chose to publicise his condition to encourage other men to have medical checks.
His need for the procedure to treat an enlarged prostrate, a benign condition common among men over 50, was announced by Buckingham Palace on January 17.
The state-run National Health Service said there had been a 1000% increase in visits to its webpage giving advice on prostate enlargement since Charles' diagnosis was revealed.
Kate is not due to return to public duties until after Easter.
Prince William has postponed his engagements to look after their three children, Prince George, 10, Princess Charlotte, 8, and Prince Louis, 5.