The frequency-comb technique—a high-precision visible and near infrared spectroscopy method—has been extended to terahertz frequencies, allowing the characterization of a rotational transition in a molecular gas with unprecedented accuracy.