To attract beneficial insects to your garden, you can plant a variety of flowering plants that provide nectar and pollen, such as marigolds, sunflowers, and lavender. Additionally, you can create habitats like insect hotels or small ponds to attract beneficial insects like ladybugs, lacewings, and bees. Avoid using pesticides and chemicals in your garden, as they can harm beneficial insects. Finally, provide a water source and maintain a diverse garden ecosystem to support a healthy population of beneficial insects.