A mediator mediates the relationship between the independent and dependent variables – explaining the reason for such a relationship to exist.
The purpose of mediation analysis is to see if the influence of the mediator is stronger than the direct influence of the independent variable
the relationships between the independent variable, mediator, and dependent variable are not tested for causality, just a correlational relationship.
An obvious real-life mediator is temperature on a stove. Water will not start to boil until you have turned on your stove, but it is not the stove knob that causes the water to boil, it is the heat that results from turning that knob.
For instance, people with higher incomes tend to live longer but this effect is explained by the mediating influence of having access to better health care.