Abstract:The main components of anthocyanins in different fruits and vegetables were discussed. And the role of anthocyanins of prevention and treatment of type 2 diabetes were explored. The mechanism of anthocyanins in preventing and treating type 2 diabetes by reducing oxidative stress, improving insulin resistance, promoting insulin secretion and protecting β cells was discussed, and provided a theoretical basis for the comprehensive utilization of polyphenolic compounds in fruits and vegetables.