A dense piece of material, usually plastic, bone, or some sort of synthetic. It is mounted in a slot between the fingerboard and the headstock. The nut has a groove filed in it for each string, this keeps them properly spaced.

photo byninja 4 life





