Overfitting occurs when a machine learning model performs well on the training data but poorly on unseen data.  It happens when the model is too complex and captures noise in the training data.