Mothballs contain naphthalene, the odor of naphthalene irritates the snakes, but outdoors it seems to have no effect on them. Mothballs also have other odors. It was not meant to be used for snakes.