A dehumidifier can help to combat some leading causes of musty smells in a basement, such as dampness or mold, but it will not get rid of the smell on its own. Once you have treated the root cause of the smell, using cleaning techniques and fragranced products, as well as preventative measures to prevent the issue from recurring is essential to combating the smell once and for all.