The answer is how you think determines how you feel. Cognitive therapy is a type of psychotherapy used to treat despair, nervousness disorders, fears, and other kinds of mental illness. It involves identifying one-sided thinking and learning to swap it with more accurate substitute thoughts.