The chemical reactions and pathways involving caprolactam, hexahydro-2h-azepin-2-one, a cyclic amide of caproic acid used in manufacture of synthetic fibers of the polyamide type. It can cause local irritation.