Friction is a force that opposes the relative motion between two surfaces in contact. It is caused by irregularities on the surfaces at a microscopic level that cause interlocking. The factors that affect friction are the roughness of the surfaces, the pressure between them, and their nature. There are two main types - static friction which acts when an object is at rest, and sliding friction which acts when objects are in motion relative to each other. Friction is both advantageous and disadvantageous. While it enables important functions like walking and driving, it also causes wear and generates heat. Methods to increase or reduce friction depend on whether its effects are needed or not in a given situation.