If something is a mediating variable:
It’s caused by the independent variable
It influences the dependent variable
When it’s taken into account, the statistical correlation between the independent and dependent variables is higher than when it isn’t considered