Friction is a contact force that opposes the relative motion between two objects in contact. It can slow objects down or prevent stationary objects from moving. Friction depends on the nature of the surfaces in contact, with rougher surfaces producing more friction than smoother surfaces. Friction has both advantages, like allowing us to walk and brake vehicles, and disadvantages, such as causing wear and generating heat that can damage machines. The level of friction can be controlled by changing surface roughness, using lubricants, or altering pressure between surfaces.