Friction is a force that opposes the relative motion or tendency of motion between two surfaces in contact. It occurs due to the interaction between microscopic irregularities on the surfaces, which resist the motion of one surface over the other.