Friction is a force that opposes the relative motion between two surfaces in contact. It always acts in the direction opposite to the direction of motion and depends on the type of material the surfaces are made of. Friction can be useful by preventing slipping but also causes wearing of surfaces and produces heat. Engineers often look to reduce friction, such as by lubricating moving parts in engines.