Friction is caused when two surfaces move against each other in opposing directions.
The resistance offered by friction depends directly on the force applied to move the two surfaces (calculated as vertical or normal force) and the roughness of the surfaces.
The smoother the surfaces, the less the resistance; the rougher the surface, the more the resistance.