The transmission of echinococcosis primarily involves a cycle between canines (definitive hosts) and various ungulates (intermediate hosts). Humans become accidental intermediate hosts by ingesting the eggs of Echinococcus species, typically through contaminated food, water, or soil, or through direct contact with infected animals.