While storing woolen clothes, naphthalene balls are added to protect them from moths and insects that can damage fibres of the woolen clothes
This is possible because solid naphthalene balls undergo sublimation and release vapors with peculiar odour that repels these insects.
Sublimation: Direct conversion of a solid substance into its vapor state or vice versa without changing into liquid state. Examples: Camphor, Naphthalene