A gauge theory is a field theory whose physical laws remain unchanged under local symmetry transformations, called gauge transformations, that can be applied independently at each point of spacetime. Preserving this symmetry requires gauge fields, whose quanta are the particles that mediate forces. Electromagnetism is the simplest gauge theory, with symmetry group U(1) and the photon as its gauge particle.
In 1954 Chen Ning Yang and Robert Mills generalized gauge theory to non-abelian symmetry groups in what is now called Yang-Mills theory. Quantum chromodynamics (QCD), which describes the strong interaction, and the electroweak theory, which unifies the weak and electromagnetic interactions, are both non-abelian gauge theories, and together they form the Standard Model of particle physics. Gauge theory is also deeply connected to differential geometry in mathematics.