A nanometer (nm) is a unit of length in the metric system, equal to one-billionth of a meter (10^-9 m). It is a fundamental unit used to measure extremely small lengths, particularly in the context of the electromagnetic spectrum and the study of atomic and molecular structures.