These hardy annuals thrive in well-drained soil and full sun, making them ideal for borders, containers, and companion planting. In addition to deterring squirrels, marigolds can help repel other garden pests, such as aphids and nematodes, making them a valuable addition to any garden.