Typhoid fever is spread through the feces of infected people. When food or water is contaminated by feces, the bacteria can spread and infect other people.