Good thermoelectric generators should ideally be realized by utilizing the same compounds in both p-type and n-type materials for achieving high energy conversion efficiency to drive the application. In this work, we enable a conduction transition from p-type to n-type in the YbMg 2 Sb 2 -based Zintl compounds via Mg vacancies compensation and cation site doping. By further Mg-doping in the Yb site, a significantly suppressed lattice thermal conductivity and noticeably enhanced power factor is obtained simultaneously. Thus, n-type YbMg 2 Sb 2 -based compounds with high power factor, low thermal conductivity, and high figure of merit are obtained. Our work broadens the family of n-type Zintl phase thermoelectric materials, demonstrating that the intrinsic defect chemistry and extrinsic doping are important approaches for such materials systems to achieve n-type conduction.