Its often due to the excess moisture that starts mold or mildew build-up.

Start by emptying your closet.

Look for any leaks or other liquids that could be the source of the closet smell.

Neutral colored clothes hanging in wooden closet

Anastasiia Krivenok/ Getty Images

Wipe down the walls and shelves with a vinegar and water solution to dissipate odors.

Then, vacuum the floors.

Immediately hang or dry damp clothes in the dryer.

Closet with colorful T shirts and shirts on hangers and a shelf with orderly piles of folded clothes

Annie Japaud / Getty Images

Avoid putting wet clothes in your closet or laundry hamper to prevent moisture build up in your closet.

Increase Airflow

Airflow between your clothes and shoes can help prevent closet smells.

Avoid filling your closet so your clothes have room to breathe.

(Store seasonal clothing if its not in use to maximize space in your closet.)

Keep closet doors open occasionally to let air circulate.

Neutralize Odors

There are several ways to neutralize odors and keep your closet smelling fresh.

Try placing pouches of dried lavender or dryer sheets in your closet.

Mold cleanup in your home.U.S.