When a body is made to slide over the surface of another body by applying a force, a resistive force comes into action which acts opposite to the direction of the applied force.
Frictional force is the resistive force that develops between the two surfaces in contact when there is a relative motion between them.
The surface irregularities of the two surfaces in contact lock each other which produces friction between them.
Due to the resistive nature of frictional force, it always hampers the motion of a body.
Frictional force is very necessary for walking, stopping vehicles, writing, etc.