>>2147924> Bugs ate my gardenYour options are basically to grow only pest resistant plants, use insecticide, or attract predators to those pests.
Other anons talked about plants that attract pest predators, and there are plants that produce natural insecticides, which you can extract and use on your garden.
Some that come to mind are Pelargonium graveolens, some Chrysanthemum plants have natural insecticides, and tea tree oil does, but tea tree oil is also suspected of entering the body and mimicking the effects of estrogen, and some of the other plants might have negative effects on human health too.