Common household items that people can use to repel snakes include mothballs, hot pepper flakes, ammonia, garlic and peppermint. Mothballs contain naphthalene, which causes liver damage and anemia, and the Environmental Protection Agency warns that the chemical may also be a human carcinogen.
Removing any debris piles and cutting grass short helps to get rid of snakes. Installing snake fencing also keeps snakes out of a yard. Effective snake fencing, which surrounds the entire yard, can include solid wood, vinyl or steel mesh fencing set at a 30 degree angle. The mesh must have less than 1/4-inch openings and be flush with or buried in the ground.