The D-term (the derivative part, also called Derivative control mode) is the PID controller's “fortune teller”. Where the P-term looks at the present, and the I-term looks at the past, the D-term tries to predict the future by measuring how quickly the error is changing.
The D-term can be regarded as the system's brake. Its purpose is to dampen oscillations and prevent you from overshooting the target.