Riveters and riveting machines insert fasteners through aligned holes in parts to be joined, then press or hammer them from the insertion side to provide the second retaining head.
Rivets are headed pins with a point that passes through two pieces of material. Beating or pressing down the point causes it to spread out and form a second head. Rivets can be used to connect two plates or pieces of material together.