Bill Clinton has released a video on Twitter to say how glad he was to be home following hospital treatment and to thank the doctors and nurses for their work.
He added that he was "touched by the outpouring of support" he had received while staying in hospital.
The 75-year-old politician was admitted to the Irvine medical centre of the University of California on 15 October. According to his aide, Clinton had been suffering from a urological infection that had spread to his bloodstream. His condition was not life-threatening.