Overfitting occurs when a machine learning model learns the details and noise in the training data to the extent that it negatively impacts the model’s performance on new, unseen data. The model becomes overly complex and fits the training data too closely, reducing its ability to generalize.