Infection happens when people eat raw or undercooked meat from infected animals. Afterward, tapeworm eggs pass through the stool, contaminating the surroundings. This can infect other animals or people, making the cycle continue. Sometimes, humans can get tapeworm cysts by being the only host, not needing an animal in between.