A noncoding variant confers pancreatic differentiation defect and contributes to diabetes susceptibility by recruiting RXRA. Here, RXRA is linked to diabetes mellitus.