The main principle of cognitive therapy is cognitive restructuring, which involves identifying, challenging, and altering distorted thought patterns to improve emotional well-being and behaviors.