Because parasites have an inextricable relationship with their host, they have the potential to serve as viral reservoirs or facilitate virus host-shifts. Yet, little is known about viruses infecting parasitic hosts except for blood-feeding arthropods that are well-known vectors of zoonotic viruses. Herein we uncover viruses of flatworms (Phylum Platyhelminthes, group Neodermata) that specialize in parasitizing vertebrates and their ancestral free-living relatives. We discovered 115 novel viral sequences, including 1 in Macrostomorpha, 5 in Polycladida, 44 in Tricladida, 1 in Monogenea, 15 in Cestoda and 49 in Trematoda, through data mining. The majority of newly identified viruses constitute novel families or genera. Phylogenetic analyses show that the virome of flatworms changed dramatically during the transition of Neodermatans to a parasitic lifestyle. Most Neodermatan viruses seem to co-diversify with their host, with the exception of rhabdoviruses which may switch host more often, based on phylogenetic relationships. Neodermatan rhabodviruses also have an ancestral position to vertebrate-associated viruses, including Lyssaviruses, suggesting that vertebrate rhabdoviruses emerged from a flatworm rhabdovirus in a parasitized host. This study reveals an extensive diversity of viruses in Platyhelminthes and highlights the need to evaluate the role of viral infection in flatworm-associated diseases.