The Yerkes-Dodson law is a psychological principle that describes the relationship between stress levels and performance, suggesting that moderate stress can enhance performance, while too little or too much stress can hinder it. This relationship is often illustrated as an inverted U-shaped curve, where optimal performance occurs at an intermediate level of arousal.