Friction is a force that always opposes all motion.
It always acts in a direction exactly opposite to that in which an object is moving (or trying to move), and typically comes when the surface rubs or drags against another as it moves.
The frictional force is called necessary evil because it is useful and harmful both for us.