Sand flies become infected with the parasite by biting an infected animal such as a rodent or a dog, or biting an infected person. The infected sand flies can then spread the parasite by biting other animals and people.