A block resting on a horizontal surface and suppose a force is applied to it and still the body is not moving then, friction force is equal to applied force cancelling it
now when we increase the force to move the block then frictional force also increases
so
fmax= μN
N=mg
so fmax= μmg