We prove that the swampland for D=10 N=1 SUGRA coupled to D=10 N=1 SYM is only populated by U(1)^496 and E_8 x U(1)^248. With this goal in mind, we review the anomalies for classical and exceptional groups, retrieving trace identities up to the sixth power of the curvature for each class of groups. We expand this idea for low-dimensional groups, for which the trace of the sixth power is known to factorize, and we retrieve such factorization. We obtain the total anomaly polynomials for individual low dimensional groups and combinations of them and finally we investigate their non-factorization, in such a way that U(1)^496and E_8 xU(1)^248 are non-trivially shown to be the only anomaly-free theories allowed in D=10. Using the method developed for checking the factorization of gauge theories, we retrieve the Green-Schwarz terms for the two theories populating the swampland.