We consider spherical exact models for compact stars with anisotropic pressures and a conformal symmetry. The conformal symmetry condition generates an integral relationship between the gravitational potentials. We solve this condition to find a new anisotropic solution to the Einstein field equations. We demonstrate that the exact solution produces a relativistic model of a compact star. The model generates stellar radii and masses consistent with PSR J1614-2230, Vela X1, PSR J1903+327 and Cen X-3. A detailed physical examination shows that the model is regular, well behaved and stable. The mass-radius limit and the surface red shift are consistent with observational constraints.