Friction is the force that tries to oppose the relative motion between two objects. In this case the greatest friction is between the pendulum and the air it moves through.
In which direction does friction act?
What determines the size of the frictional force?
How does friction affect the pendulum?

more about friction