Heartworms are a parasite that invades the heart and pulmonary system. They are transmitted by mosquitoes from dog to dog. This can be prevented by consistently administering heartworm preventatives. These preventatives come in injectable, oral, or topical forms.