A nut and bolt are essential mechanical fasteners used to join two or more components securely. The bolt consists of a cylindrical shaft with a head on one end and threads on the other, while the nut is a small, hexagonal component with an internal threaded hole.