Mothballs are solid pesticides that slowly release a gas vapor to kill and repel moths, their larvae, and other insects from stored clothing and fabric. Mothballs are sometimes also used to repel snakes, mice, and other animals, although this use is not recommended and can be harmful to pets, children, and the environment.