These pairings deter destructive pests while welcoming pollinators and other beneficial insects.