In the 2D XY model, spins are unit vectors with continuous angle θ. Topological defects (vortices) carry winding number ±1 — the angle rotates by ±2π around the core. The Berezinskii-Kosterlitz-Thouless transition involves unbinding of vortex-antivortex pairs.