The former South African president, Nelson Mandela, has been discharged from hospital, the South African presidency says.
Mr Mandela will continue to receive treatment at his home in Johannesburg until he has fully recovered, according to a statement from President Jacob Zuma's office.
Mr Mandela was admitted to hospital 18 days ago.
He was treated for a lung infection and gallstones
His wife, Graca Machel, and President Zuma visited him on Christmas Day and said he was in good spirits.
Afterwards, Mr Zuma said doctors were happy with the progress Mr Mandela had made.
In his statement on Sunday, he thanked South Africans for the messages of good wishes they had sent and asked that Mr Mandela be allowed continued privacy to complete his recovery.