A riveting machine permanently joins two or more pieces of metal or plastic material by inserting and deforming a metal fastener called a rivet. The tool feeds a rivet into pre-drilled holes, then applies controlled mechanical, pneumatic, or orbital pressure to squeeze or flare the shank, forming a strong, tight joint.