A rivet is a nail shaped object used to connect two parts (or components) with through holes and a cap on one end. In riveting, using self deformation or interference fit to connect the riveted parts. There are many types of rivets, and they are not limited in form.