In the terminology of theoretical physics, the term "ghost" is used to identify an object that has no real physical meaning. The name "Faddeev–Popov ghosts" is given to the fictitious fields that were originally introduced in the construction of a manifestly Lorentz covariant quantization of the Yang–Mills field. Later, these objects acquired more widespread application, including in string theory. The necessity of ghosts is associated with gauge invariance. In gauge invariant theories, one usually has to deal with local fields, whose number exceeds that of physical degrees of freedom. For example in electrodynamics, in order to maintain manifest Lorentz invariance, one uses a four component vector potential Aμ(x), whereas the photon has only two polarizations. Thus, one needs a suitable mechanism in order to get rid of the unphysical degrees of freedom. Introducing fictitious fields, the ghosts, is one way of achieving this goal.