Nylon 6 is synthesized through the ring-opening polymerization of caprolactam. Caprolactam is a cyclic amide (lactam) with six carbon atoms. Upon heating, the ring opens, and the linear molecules polymerize.