Friction acts to oppose the motion of an object. It creates a force that works against the direction of movement, slowing it down.