Nelson Mandela has been released from hospital, the South African government has confirmed.
But the former South African President's condition "remains critical and is at times unstable".
Mandela, 95, was admitted to hospital on June 8 with a recurring lung infection.
President Jacob Zuma's office said the government would like to wish Mandela "all the best" as he continues his recovery at his Johannesburg home.
In a statement, the government said: "Madiba's condition remains critical and is at times unstable. Nevertheless, his team of doctors are convinced that he will receive the same level of intensive care at his Houghton home that he received in Pretoria.
"His home has been reconfigured to allow him to receive intensive care there. The health care personnel providing care at his home are the very same who provided care to him in hospital.
"If there are health conditions that warrant another admission to hospital in future, this will be done."
On Saturday, the presidency said reports Mandela had been taken home were "incorrect".