Friction is the contact force, parallel to the surface, that opposes sliding. It has two regimes: static (a constraint force that takes on the necessary value, up to a maximum ) and kinetic (constant value while the body slides, which dissipates kinetic energy as heat).