Raccoons enter gardens at night to feed on fresh produce. They especially love tender corn. These garden pests often destroy the entire corn plant, tearing ears from the stalk and breaking stems. Preventing them from entering the garden in the first place is the most effective means of controlling raccoons, because once they taste fresh produce, they return nightly until the crop is destroyed.
Erect an electrical fence around the border of the garden. According to the University of Missouri Extension, an electrical fence provides the best protection from raccoons because they dig under or climb over ordinary fencing.
String two wires on insulated posts around the perimeter of the garden. Place one wire at a height of 8 inches and the second wire at a height of 12 inches.
Activate the electrical fence at dusk and turn it off during the day, while these nocturnal animals sleep.