All-or-nothing thinking, also known as black-and-white thinking, is a cognitive distortion where individuals view situations in extreme terms, without recognizing any middle ground. This mindset can lead to unrealistic expectations and emotional distress, as it ignores the complexities and nuances of real-life situations.