Sometimes medications are used to treat mental disorders, including depression. Different types of medications are available.