Cedar contains natural volatile oils that are repellant and potentially lethal to clothes moths. However, the high concentration of volatile oils required to kill moths is difficult to achieve even in a closed chest, and it’s nearly impossible to achieve in a standard clothes closet. You might want to use cedar if you like the smell, but don’t rely on it to prevent moth damage.