This study investigated the effect of rain-shelter cultivation on the biosynthesis of flavonoids and volatiles in grapes, with an aim of determining whether rain-shelter application could help to improve the sensory attributes and quality of grapes. Vitis vinifera L. Chardonnay grapes, grown in the Huaizhuo basin region of northern China, were selected within two consecutive years. A rain-shelter roof was constructed using a colorless polyethylene (PE) film with a light transmittance of 80%. Results showed that rain-shelter treatment did not affect the accumulation of soluble solids during grape maturation. However, the allocation of assimilated carbon in phenolic and volatile biosynthetic pathways varied significantly, leading to alterations in polyphenolic and volatile profiles. The rain-shelter cultivation enhanced the concentration of flavan-3-ols via the flavonoid-3'5'-hydroxylase (F3'5'H) pathway, but reduced the level of flavonols and flavan-3-ols via the flavonoid-3'-hydroxylase (F3'H) pathway. In addition, the rain-shelter cultivation significantly enhanced the synthesis of fatty acid-derived volatiles, isoprene-derived terpenoids and amino acid-derived branched-chain aliphatics, but led to a decrease in the accumulation of isoprene-derived norisoprenoids and amino acid-derived benzenoids. Principal component analysis revealed some key compounds that differentiated the grapes cultivated under open-field and rain-shelter conditions. Moreover, the effect of the rain-shelter application on the accumulation of these compounds appeared to be vintage dependent. The alteration of their profiles caused by the rain-shelter treatment was significant in the vintage that received higher rainfall, which usually took place in the first rapid growth and veraison phases.