Ultimate attribution error is a cognitive bias where people attribute negative behaviors of outgroup members to their inherent qualities, while attributing positive behaviors to situational factors. This bias shows how we perceive members of different social groups and can lead to stereotypes and prejudice. It illustrates the tendency to judge others based on group identity rather than individual actions, which is crucial for understanding biases in social attribution.