Immature function and fragility hinder application of hESC-derived β cells (SC-β cell) for diabetes cell therapy. Here, the authors identify ZnT8 as a gene editing target to enhance the insulin secretion and cell survival under metabolic stress by abolishing zinc transport in SC-β cells.