The stochastic 2D primitive equations with anisotropic viscosity are studied in this paper. The existence of the martingale solutions and pathwise uniqueness of the solutions are obtained. The proof is based on anisotropic estimates, the compactness method, tightness criteria and the Jakubowski version of the Skorokhod Theorem for nonmetric spaces.