The development of protective immunity to Ascaris suum was examined in pigs naturally exposed to eggs on a contaminated dirt lot. Pigs became almost totally immune to second-stage larvae migrating from the intestines because few larvae from a challenge inoculum could be found in the lungs, and liver white-spot lesions (an immunopathologic response to migrating larvae) were absent. Blood from these pigs contained lymphocytes that responded blastogenically to larval antigens in vitro, while the serum contained antibody to larval antigens. Immunity was related to parasite exposure and not to the age of the host, and was not affected by the removal of adult A. suum from the intestines. Naturally exposed pigs responded to a variety of A. suum antigens with an immediate-type skin reactivity, and their intestinal mucosa contained relatively large numbers of mast cells and eosinophils. Other pigs were maintained on a dirt lot not contaminated with A. suum eggs and the effects of common environmental conditions on development of resistance to A. suum were studied. Resistance also developed in these pigs because 72% fewer larvae were detected in their lungs following a challenge exposure than in control pigs confined indoors on concrete floors and challenged similarly. This response was not expressed at the intestinal level, however, because their livers had numerous, intense white-spot lesions. To verify that the intestinal immunity that developed in pigs after natural exposure to A. suum was a direct result of homologous infection and not related to other stimuli encountered on a dirt lot, pigs maintained indoors on concrete floors, free from inadvertent helminthic infection, were inoculated orally with A. suum eggs daily for 16 weeks. Intestinal immunity was induced because larvae from a challenge inoculum were not detected in the lungs, and few white-spot lesions appeared on the livers of these pigs. Apparently, continual exposure of the intestinal mucosa to larvae eventually elicits the appropriate effector components necessary to prevent larval migration from the intestines.