Mothballs have been used in some instances to repel moles due to their strong odor. However, this method isn't particularly effective and can potentially harm other wildlife, pets, children, and the environment. Mothballs are pesticides and should not be used outside of their intended purpose.