Li et al. reveal that the maize (Zea mays) flavonol glycosyltransferse UFGT2 plays major roles in the flavonol modification, and could also help the plants to cope with abiotic stresses. It is a candidate gene for improving the grain quality and crop traits in stress tolerance. With the aggravation of environmental deterioration and the demand of people for healthy food, crops with both environmental adaptation properties and rich in nutrient compounds are worth exploring. Flavonols are the most abundant flavonoids in foods and could exert health-promoting effects.