The government has locked down Eastleigh and Old Town as coronavirus cases surge.
There will be no movement into and out of the areas effective Wednesday at 7pm for 15 days, Health CS Mutahi Kagwe said on Wednesday.
"You cannot leave the area to go to another area. This will take place for 15 days," he said.
Kagwe said public transportation will also not be allowed to go to those areas.
"This is to protect those within those areas," Kagwe said.
The CS also ordered that eateries in the areas remain closed during the lockdown.
Kenya has recorded 47 new coronavirus cases bringing the number to 582 people.
A total of 32 are from Mombasa, 11 from Nairobi.
Two cases were recorded in Busia, Kiambu had one and Kwale one.
Kagwe on Wednesday said the cases in Mombasa are mainly in Old Town with 18 cases.
Kagwe said 31 are male and 16 female.
Another eight people have been discharged, bringing the total discharged to 19.
Another two people have died. They are from Mombasa.
This brings the number to 26, the number of discharges.
The CS said it is not fair to expect police to focus their energy going after patrons of eateries instead of doing other important duties because they are flouting rules.