Ascaris infection (Ascariasis) is caused when contaminated food or water is consumed. The contaminated food or water contains eggs that hatch in the intestines, attach to the wall, and shift to the lungs via blood.