The endosymbiotic association between legumes and soil bacteria called rhizobia leads to the formation of a new root-derived organ called the nodule in which differentiated bacteria convert atmospheric nitrogen into a form that can be assimilated by the host plant. Successful root infection by rhizobia and nodule organogenesis require the activation of symbiotic genes that are controlled by a set of transcription factors (TFs). We recently identified Medicago truncatula nuclear factor-YA1 (MtNF-YA1) and MtNF-YA2 as two M. truncatula TFs playing a central role during key steps of the Sinorhizobium meliloti-M. truncatula symbiotic interaction. NF-YA TFs interact with NF-YB and NF-YC subunits to regulate target genes containing the CCAAT box consensus sequence. In this study, using a yeast two-hybrid screen approach, we identified the NF-YB and NF-YC subunits able to interact with MtNF-YA1 and MtNF-YA2. In yeast (Saccharomyces cerevisiae) and in planta, we further demonstrated by both coimmunoprecipitation and bimolecular fluorescence complementation that these NF-YA, -B, and -C subunits interact and form a stable NF-Y heterotrimeric complex. Reverse genetic and chromatin immunoprecipitation-PCR approaches revealed the importance of these newly identified NF-YB and NF-YC subunits for rhizobial symbiosis and binding to the promoter of MtERN1 (for Ethylene Responsive factor required for Nodulation), a direct target gene of MtNF-YA1 and MtNF-YA2. Finally, we verified that a similar trimer is formed in planta by the common bean (Phaseolus vulgaris) NF-Y subunits, revealing the existence of evolutionary conserved NF-Y protein complexes to control nodulation in leguminous plants. This sheds light on the process whereby an ancient heterotrimeric TF mainly controlling cell division in animals has acquired specialized functions in plants.