Backpropagation is a learning algorithm that helps a neural network adjust its weights by working backward from the prediction error.