Friction is the force that opposes the relative motion between two surfaces in contact with each other. It occurs due to bumps and imperfections at the microscopic level of the surfaces that cause them to stick together when moved across one another. There are different types of friction including static, kinetic, rolling, and sliding friction. While friction is necessary for walking, gripping objects, and other functions, it also leads to energy loss and wear of machine parts, making it an overall "necessary evil." Ways to increase friction include adding grooves or spikes, while reducing the contact area, smoothing surfaces, lubrication, and using ball bearings can decrease friction.