To keep raccoons away, secure your trash cans and close off attic and basement entries. Also, take good care of your gardens and food outside. These steps help stop raccoons from nesting and damaging properties.