A nut is a fastener with a hole in it which is used to conjunct a mating bolt to hold together two or more parts. The two parts are kept together by a combination of their threads' friction, a slight stretching of the bolt, and compression of the parts to be held together.