On a mechanical level, cognitive therapy works because it changes explanatory style from pessimistic to optimistic, and the change is permanent. It gives you a set of cognitive skills for talking to yourself when you fail. You can use these skills to stop depression from taking hold when failure strikes.

