Miracidium is the free-swimming larval stage of a parasitic flatworm, specifically a trematode, which is responsible for infecting the first intermediate host, usually a snail. It plays a crucial role in the life cycle of trematodes by facilitating the transition from the egg stage to the next larval stage within the snail host.