Glucose-6-phosphate dehydrogenase (G6PD) deficiency, one of the most common human genetic enzymopathies, is caused by over 160 different point mutations and contributes to the severity of many acute and chronic diseases associated with oxidative stress, including hemolytic anemia and bilirubin-induced neurological damage particularly in newborns. As no medications are available to treat G6PD deficiency, here we seek to identify a small molecule that corrects it. Crystallographic study and mutagenesis analysis identify the structural and functional defect of one common mutant (Canton, R459L). Using high-throughput screening, we subsequently identify AG1, a small molecule that increases the activity of the wild-type, the Canton mutant and several other common G6PD mutants. AG1 reduces oxidative stress in cells and zebrafish. Furthermore, AG1 decreases chloroquine- or diamide-induced oxidative stress in human erythrocytes. Our study suggests that a pharmacological agent, of which AG1 may be a lead, will likely alleviate the challenges associated with G6PD deficiency.