The UN's emergency Ebola response headquarters in Ghana's capital, Accra, is to close as the outbreak slows.
The head of the mission, Peter Graaff, met the Ghanaian president to thank the country for hosting the agency since it was set up in September last year.
A small team will stay until the end of June to co-ordinate air operations, the agency, known as Unmeer, said.
Ghana has not been affected by the epidemic in West Africa, which has killed more than 11,000 people.
The BBC's Africa health correspondent Anne Soy says the mission set up its headquarters in Accra as it was far enough away from the affected countries, where there was logistical lockdown, but close enough the epicentre of the outbreak.
"By allowing us to set up our headquarter in Accra, President [John ] Mahama demonstrated extraordinary leadership and solidarity," Mr Graaff said in a statement.
"He made Ghana the only open gateway to Guinea, Liberia and Sierra Leone thus allowing the movement of thousands of Ebola responders and medical and essential supplies when they were most needed."
As a result, Unmeer said Guinea, Liberia and Sierra Leone now had the necessary response capabilities in place to efficiently test, treat and isolate Ebola patients.
- Porous borders stoke Ebola fears across the region
- Uganda confirms fresh Ebola outbreak, records one death, eight cases
- Wetin we know as Uganda confam fresh outbreak of Ebola virus
- DR Congo reports one suspected Ebola case - WHO
- Ghana records two cases of suspected Marburg Virus Disease
- Read all related articles