Beetles are attracted to yards that provide ample food, moisture, and shelter. Gardens with plenty of fruits, vegetables, and flowers can draw beetles seeking food. Moist environments, such as areas with standing water or damp soil, are also attractive to beetles.Keeping your yard tidy by removing piles of leaves, mulch, and woodpiles reduces hiding spots for beetles. Many beetles are drawn to outdoor lights at night, so using yellow or sodium vapor lights can help reduce this attraction. Additionally, certain plants with fragrant flowers or sweet nectar can attract beetles, so planting beetle-resistant varieties may help.