In general, the frictional force is an opposing force.
Air resistance, friction when walking, and other examples of frictional force are present that we encounter on a daily basis.
Direction of friction
When we walk, frictional forces cause us to become exhausted.
If we try to slide a box like the one illustrated in the diagram, we may encounter friction that opposes our force. It's similar to a tug of war situation. We wish to move the box ahead, but friction prevents us from doing so. We might be able to push the box further if we use additional force.
As a result, the box's motion is caused by a force equal to the difference between the applied and frictional forces. After eliminating the friction component, the force responsible for propelling our item forward remains.
If we raise the weight of the box, we may have more difficulty moving it forward. We could find it easier to push the box forward if we smooth out the surface beneath it. The magnitude of the friction that the box will encounter is determined by these two parameters.
Hence, the force of friction always opposes the applied force.