- A six dimensional model describing the interaction of gravity with gauge fields whose dynamics is consistent with redefinitions of the measure of integration in the action is defined. This is achieved for the choice |F AB F AB | for the lagrangian density of gauge fields. In the absence of gauge field condensates, a confinement phase exists. In contrast, a magnetic condensation can be responsible for both the compactification of two dimensions into a sphere and for generating normal propagating gauge excitations and therefore the elimination of confinement. The matching of the confined and deconfined phases and the formation of “bags” in this model is discussed. In contrast with the Coulomb solution of ordinary electromagnetism we expect here the field of elementary charges to be non singular. If the gauge field is a composite of two primitive scalars, the model has a remarkable geometrical interpretation.