The bacteria that cause typhoid fever can spread through contaminated food or water.