Negative thought patterns can cause—or contribute—to depression and anxiety, and cognitive therapy aims to turn that thinking around. During treatment, you’ll learn how to recognize harmful or irrational thoughts and replace them with more constructive ones.