The sine-Gordon model is in the same universality class as the effective action for a Coulomb gas of vortices and anti-vortices in the continuous classical XY model, which is a model of magnetism. The Kosterlitz–Thouless transition for vortices can therefore be derived from a renormalization group analysis of the sine-Gordon field theory.