The annual hajj pilgrimage which drew two million Muslims from around the world has been epidemic-free, Saudi Arabia's acting health minister said on Monday.
Oil-rich Saudi Arabia, home to Islam's holiest sites, engaged thousands of health workers to make sure pilgrims were protected from two deadly viruses, Ebola and Middle East Respiratory Syndrome coronavirus (MERS-CoV).
The mission succeeded, acting health minister Adel Fakieh told reporters as pilgrims performed the final rituals of the hajj and began returning home.
"I am pleased to announce the hajj was free of all epidemic diseases," Fakieh said.
Among its preventive measures, Fakieh's ministry set up a "command and control" centre to direct the hajj health operation, and required every pilgrim to complete a health screening questionnaire.
Signup to our newsletter and follow us on Facebook and Twitter!
Passengers were monitored by thermal cameras that detect high body temperature, and 15 isolation rooms were set up to hold any suspicious cases at the airport in the city of Jeddah.
Fakieh said 170 people were considered as possibly having MERS but all proved to be negative.
Saudi Arabia is the country hardest hit by MERS, which has killed 322 people in the kingdom since it first appeared in September 2012.
The health ministry on Sunday reported two more MERS deaths, one in the capital Riyadh and another in Taif, 80 kilometres (50 miles) east of the holy city of Mecca.
Ebola has killed more than 3,000 people in West Africa.
Saudi Arabia did not allow pilgrims to come from Guinea, Liberia and Sierra Leone, which have been hardest hit by the illness.