Stacking is a machine learning ensemble technique where multiple diverse models are trained to make predictions on the same dataset. These predictions serve as inputs for a meta-model, which learns to weigh and combine them to produce a final, often more accurate, prediction. Stacking leverages the strengths of different models, reducing overfitting and improving overall performance.