Cestodes, also known as tapeworms, are a class of parasitic flatworms. These parasites inhabit the gastrointestinal tract of their host, usually humans or animals. They have a complex lifecycle that often involves intermediate hosts. Cestodes are segmented worms and can grow to considerable lengths, sometimes exceeding several meters.