Tapping forms threaded holes in metal parts, allowing bolts and screws to be fastened securely during assembly.