If a force is applied on a body and the body doesn't move, static friction acts on the body opposite to applied force. When there is sliding between the surfaces, kinetic or sliding friction opposes this relative motion. When one surface rolls over another surface, rolling friction comes into play.