Inhibition of notch signaling is known to induce differentiation of endocrine cells in zebrafish and mouse. After performing an unbiased in vivo screen of ∼2,200 small molecules in zebrafish, we identified an inhibitor of Cdk5 (roscovitine), which potentiated the formation of β-cells along the intrapancreatic duct during concurrent inhibition of notch signaling. We confirmed and characterized the effect with a more selective Cdk5 inhibitor, (R)-DRF053, which specifically increased the number of duct-derived β-cells without affecting their proliferation. By duct-specific overexpression of the endogenous Cdk5 inhibitors Cdk5rap1 or Cdkal1 (which previously have been linked to diabetes in genome-wide association studies), as well as deleting cdk5, we validated the role of chemical Cdk5 inhibition in b-cell differentiation by genetic means. Moreover, the cdk5 mutant zebrafish displayed an increased number of β-cells independently of inhibition of notch signaling, in both the basal state and during b-cell regeneration. Importantly, the effect of Cdk5 inhibition to promote b-cell formation was conserved in mouse embryonic pancreatic explants, adult mice with pancreatic ductal ligation injury, and human induced pluripotent stem (iPS) cells. Thus, we have revealed a previously unknown role of Cdk5 as an endogenous suppressor of b-cell differentiation and thereby further highlighted its importance in diabetes.