An antidepressant is a type of medication used to treat depression, anxiety, and other mood disorders. They work by altering the levels of certain chemicals in the brain, such as serotonin, norepinephrine, and dopamine, which are involved in regulating mood and emotions.