The heartworm parasite is transmitted to dogs and cats by mosquitoes.