Overfitting happens when a model learns noise from one sample instead of a pattern that travels across samples.