Within the closed-time-path formalism of nonequilibrium QCD, we derive a Slavnov–Taylor (ST) identity for the gluon polarization tensor. The ST identity takes the same form in both Coulomb and covariant gauges. Application to quasi-uniform quark–gluon plasma (QGP) near equilibrium or nonequilibrium quasistationary QGP is made.