Heartworm is a parasite transmitted through mosquito bites and can be fatal to dogs. You can prevent heartworm by giving your dog monthly preventative medication and avoiding mosquito-infested areas.