When the intermediate host is eaten raw or undercooked by the definitive host, the parasites are released from the ingested cysts in the intestines and develop into adult tapeworms, restarting the cycle.