In three-host life cycles, cercariae develop in the second intermediate host into a resting stage, the "metacercaria", which is usually encysted in a cyst of host and parasite origin, or encapsulated in a layer of tissue derived from the host only. This stage is infective to the definitive host. Transmission occurs when the definitive host preys upon an infected second intermediate host. Metacercariae excyst in the definitive host's gut in response to a variety of physical and chemical signals, such as gut pH levels, digestive enzymes, temperature, etc. Once excysted, adult digeneans migrate to more or less specific sites in the definitive host and the life cycle repeats.