Kenya's government spokesperson Cyrus Oguna says groups of foreigners, who many said had come from Asia and had been spotted in residential areas in Nairobi, were tourists.
Mr Oguna spoke after days of speculation on local media over the noticeably increased presence in parts of the capital of visitors from Asian countries.
The interior ministry told the BBC that the travellers were Pakistanis on transit to Saudi Arabia.
Saudi Arabia has put several Asian countries on its red list designed to prevent the spread of coronavirus.
People have been sharing photos and videos of the visitors arriving at Kenya's main airport and in residential areas.
Some have been wondering whether the country had taken in any refugees or was being used as a quarantine centre.