Sulfur is commonly used as a snake repellent, but it is not an effective manner to deter snakes. Mothballs are another common method to repel snakes that does not work.
A snake infestation can be dealt with in a few different ways. A snake can be trapped and physically removed from the area. This can be done by hand using a hook and bag, or a snake trap can be set on the property. A proven method when dealing with a snake infestation is to remove the habitat. Eliminate weeds and clutter around the home, and the snakes have no place to hide. A solid, vertical fence 2-feet high deters the snake from entering an area. There should be no gaps or holes for the snake to enter through.