The chemical naphthalene is an effective pesticide found in mothballs and other pest control products. Its strong odor also makes it a pest repellant. Naphthalene is registered for indoor and outdoor residential use. Used indoors, it kills moths and their eggs.