Antidepressant medications are primarily used in the treatment of major depression and anxiety. They work by gradually changing the balance of certain chemicals in the brain called neurotransmitters.