2. From the environment.
Puppies and dogs can get roundworms by inadvertently consuming eggs from the environment, which can be found in soil, on plants, or on other items.
As a result of consuming contaminated animals. Small creatures such as rats, earthworms, birds, and insects can also carry roundworm eggs. Because these animals aren’t the roundworm’s usual hosts, the egg never matures in these species—however, if a dog eats an infected animal, the egg can activate and grow into a roundworm once inside the dog.