Badgers are nocturnal diggers that create burrows while searching for food and water. To deter them, remove food sources such as pet food, birdseed, and garbage. Cover any existing badger holes with dirt or rocks. Install a sturdy fence at least two feet tall. Use commercial repellents sprayed around the property or placed in holes. If these methods fail, contact a professional pest control company.