The present study showed that compounds D-2 and C-1, especially compound D-2, were potent pancreatic β cell protective agents to inhibit TXNIP expression and might serve as promising lead candidates for the treatment of T2DM. Here, TXNIP is linked to type 2 diabetes mellitus.