A spacer is a metal cylinder placed between the bearings. This allows you to tighten the axle nut a bit harder without the risk of pushing in the inner bearing ring inwards which takes away slop on your bearings and wheels.