The strong CP problem is closely related to the topology of gauge fields, which presents a challenge to find a dynamical solution. This suggests to look for correlations between theta, the vacuum angle, and other parameters of the theory that are anthropically constrained. Such a solution has been found. A primary CP violating observable is the electric dipole moment of the neutron. It is explicitly shown that the dipole moment vanishes in the large volume limit, together with any local CP violating coupling of the nucleon. This implies that CP is conserved in the strong interactions.