Mothballs are a form of chemical product that is used to deter the growth of moths and other insects that feed on woolens. You should know that mothballs can last from four to six months. The main active ingredient in these products is naphthalene, which is a petroleum-based product.