The self-serving bias is a cognitive bias that causes individuals to attribute their successes to internal factors, such as ability or effort, while blaming external factors, such as luck or task difficulty, for their failures. This bias helps protect an individual's self-esteem and ego, but can lead to distorted perceptions of reality.