Former South African President Nelson Mandela has been discharged from a hospital after an improvement in his condition.

A statement from the office of President Jacob Zuma said 94-year-old Mandela was discharged today and will now receive care at his home. Officials said he was treated for pneumonia.

Mandela was admitted to a hospital in the South African capital of Pretoria on the night of March 27. It was his third trip to a hospital since December.

In the statement, Zuma thanked the medical team and hospital staff that looked after Mandela.

The statement from the office of President Zuma said there had been "a sustained and gradual improvement" in the condition of 94-year-old Mandela.

"The former President will now receive home-based high care," the statement said. Mandela had received similar treatment at his home in Johannesburg after a hospital stay in December.

During Mandela's time in hospital, doctors drained fluid from his lung area, making it easier for him to breathe.

It was his third trip to a hospital since December, when he was treated during a three-week stay for a lung infection and had a procedure to remove gallstones. Earlier in March, the anti-apartheid leader was treated in hospital overnight for what authorities said was a successful scheduled medical test.

Mandela became South Africa's first black president in 1994 after elections were held, bringing an end to the system of white racist rule known as apartheid. After his release from prison in 1990, Mandela was widely credited with averting even greater bloodshed by helping the country in the transition to democratic rule.

The Nobel Peace Prize laureate has been particularly vulnerable to respiratory problems since contracting tuberculosis during his 27-year imprisonment for fighting white racist rule in his country.

The elderly are especially vulnerable to pneumonia, which can be fatal. Its symptoms include fever, chills, a cough, chest pain and shortness of breath. Many germs cause pneumonia.

South African officials have said doctors were acting with extreme caution because of Mandela's advanced age.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.