The mean field theory of gauge theories with anisotropic couplings shows that they possess a layered phase, in addition to the usual confining and Coulomb phases. We find that the layered to Coulomb phase transition is second order in the absence, as well as in the presence of fermions. This is supported by Monte Carlo simulations and leads to the possibility of defining sensible models with domain wall fermions. ((orig.)).