An antidepressant is a type of medication that is used to treat people with mood disorders including depression and also to treat people with anxiety disorders. Some people take antidepressants to lower their sex drive and treat premature ejaculation.