Apply organic fertilizers to the garden in the form of compost or mulch. The molds in these organic materials attack and kill nematodes.
Work the compost into the garden soil before planting. Use rich compost that looks, smells and feels like black dirt. Homemade or commercially available bagged compost both work effectively.
Work the compost into the soil around established plants. The beneficial fungi in the compost attach themselves to the nematodes and kill them on a cellular level.
Mulch with material such as grass clippings and leaves, coffee grounds, banana peels, eggshells or sawdust. Adding the mulch and allowing it to break down around the plant encourages the growth of beneficial fungi while feeding and helping the plants retain moisture.
Keep the soil intact by eliminating the use of chemicals. Using a vermicide against helminths will kill the nematodes but also the earthworms that work hard to keep soil rich and healthy.