We exhibit the one-loop multigluon effective Lagrangian in any dimension for a field theory with a quasilocal background, using the background-field formalism. Specific results, including counterterms (up to 12 space-time dimensions), have been derived, applied to the Yang-Mills theory and found to be in agreement with other string-inspired approaches.