Dietary fiber helps in prevention and control of diabetes mellitus. In quantities typically eaten, whole grain fiber is protective against T2DM while fruit fiber gives little protection. Whole-grain consumption was associated with a reduced risk of type 2 diabetes. Cereal fiber shows effects of gut microbiota through mechanisms such as: 1) improving glucose tolerance 2) reducing inflammation and 3) altering the immune response. So start eating whole grain foods like millets, whole pulses and legumes.