Determine if the beetles are Asian longhorned beetles. These beetles are about 1 inch long and are black with white spots. They are typically found outside in lumber, trees and logs.
Look for the small holes that these beetles drill into wood. According to the U.S. Department of Agriculture (USDA), Asian longhorned beetles typically drill holes that are 3/8 inch wide.
Cut away infested branches using a saw or ax. If an entire tree is infested by beetles, cut it down.
Incinerate infected lumber, branches and trees. The USDA-created quarantine rules about Asian longhorned beetles forbid transporting any "host materials" in order to avoid spreading the beetle infestation to new areas. The only approved method of wood removal is incineration.
Spray the remaining trees and lumber with imidacloprid insecticide.
Eliminate sources of moisture from your garden or home. According to online ePestSupply, beetles are drawn to moisture. Turn off sprinklers that reach wood, fix leaking pipes and clean up spills quickly.
Open a can of wood preservative and apply it to any beetle-infested wood using a paintbrush. Wait for 12 to 24 hours and apply a second coat. Wood preservative prevents moisture buildup.
Examine infected wood to determine if it is sealed. Sealed wood is shiny in color and smooth to the touch. If the wood is sealed, sand it with a medium-grit sandpaper. Wipe away the sawdust. If wood is not sealed, it does not need to be sanded.
Fill a spray bottle with an insecticide designed to work with wood. The wood insecticide should contain termiticide and fungicide in order to kill the beetles attacking the wood.
Spray the wood insecticide over the surface of the wood. Spray liberally in outdoor area, applying insecticide to soil as well a any wood furniture. Apply imidacloprid insecticide to any nonwooden objects of surfaces such as walls, metal furniture and lawn ornaments.