Recent experiments demonstrated robust ferroelectricity in Mg-doped ZnO (ZMO) of the wurtzite structure, hinting at a promising strategy to substantially expand list ferroelectrics by doping conventional piezoelectrics. We investigate origin ZMO with first-principles density functional theory (DFT). The general argument that Mg alloying could soften ionic potential energy surface for polarizati...