Spatial compactification on R 3 ×S 1 L at small S 1 -size L often leads to a calculable vacuum structure, where various "topological molecules" are responsible for confinement and the realization of the center and discrete chiral symmetries. Within this semiclassically calculable framework, we study how distinct theories with the same SU(N c )/Z k gauge group (labeled by "discrete θ-angles") arise upon gauging of appropriate Z k subgroups of the oneform global center symmetry of an SU(N c ) gauge theory. We determine the possible Z k actions on the local electric and magnetic effective degrees of freedom, find the ground states, and use domain walls and confining strings to give a physical picture of the vacuum structure of the different SU(N c )/Z k theories. Some of our results reproduce ones from earlier supersymmetric studies, but most are new and do not invoke supersymmetry. We also study a further finite-temperature compactification to R 2 × S 1 β × S 1 L . We argue that, in deformed Yang-Mills theory, the effective theory near the deconfinement temperature β c L exhibits an emergent Kramers-Wannier duality and that it exchanges high-and low-temperature theories with different global structure, sharing features with both the Ising model and S-duality in N = 4 supersymmetric Yang-Mills theory.