Cognitive behavioral therapy aims to change distorted and dysfunctional thinking patterns that contribute to emotional distress and maladaptive behaviors. It involves identifying and modifying automatic thoughts, core beliefs, and cognitive distortions through techniques like thought records and cognitive restructuring. CBT has been effectively applied to treat various mental health issues like depression, anxiety, eating disorders, and substance abuse.