Antidepressants modulate the levels of neurotransmitters in the brain, which are chemicals that transmit signals between nerve cells. By altering the balance of neurotransmitters like serotonin, norepinephrine, and dopamine, these medications help alleviate symptoms of depression and anxiety. The exact mechanism can vary between different classes of antidepressants.