Self-serving bias is the tendency for individuals to attribute their successes to internal factors, such as their abilities or effort, while attributing failures to external factors, such as luck or other people's actions. This cognitive bias helps maintain self-esteem and a positive self-image, influencing how we perceive our own behaviors and the behaviors of others.