Friction is the force that resists the relative motion or attempted motion of two surfaces in contact. It arises from electrostatic interactions between the surfaces that are touching as they rub against each other. The amount of friction between any two surfaces depends on the materials and the roughness of the surfaces, as well as whether the surfaces are wet or dry.