Heartworms are spread through mosquito bites. Mosquitoes pick up the larvae of the heartworm from an infected animal and then transmit them to another animal when they bite.