Cognitive restructuring is a technique used to reframe negative thoughts and replace them with positive ones.