The endosperm in cereal grains is instrumental in determining grain yield and seed quality, as it controls starch and seed storage protein (SSP) production. In this study, we identified a specific nuclear factor-Y (NF-Y) trimeric complex in wheat (Triticum aestivum L.), consisting of TaNF-YA3-D, TaNF-YB7-B, and TaNF-YC6-B, and exhibiting robust expression within the endosperm during grain filling. Knockdown of either TaNF-YA3 or TaNF-YC6 led to reduced starch but increased gluten protein levels. TaNF-Y indirectly boosted starch biosynthesis genes by repressing TaNAC019, a repressor of cytosolic small ADP-glucose pyrophosphorylase 1a (TacAGPS1a), sucrose synthase 2 (TaSuS2), and other genes involved in starch biosynthesis. Conversely, TaNF-Y directly inhibited the expression of Gliadin-γ-700 (TaGli-γ-700) and low molecular weight-400 (TaLMW-400). Furthermore, TaNF-Y components interacted with SWINGER (TaSWN), the histone methyltransferase subunit of Polycomb repressive complex 2 (PRC2), to repress TaNAC019, TaGli-γ-700, and TaLMW-400 expression through trimethylation of histone H3 at lysine 27 (H3K27me3) modification. Notably, weak mutation of FERTILIZATION INDEPENDENT ENDOSPERM (TaFIE), a core PRC2 subunit, reduced starch but elevated gliadin and LMW-GS contents. Intriguingly, sequence variation within the TaNF-YB7-B coding region was linked to differences in starch and SSP content. Distinct TaNF-YB7-B haplotypes affect its interaction with TaSWN-B, influencing the repression of targets like TaNAC019 and TaGli-γ-700. Our findings illuminate the intricate molecular mechanisms governing TaNF-Y–PRC2-mediated epigenetic regulation for wheat endosperm development. Manipulating the TaNF-Y complex holds potential for optimizing grain yield and enhancing grain quality.