Nuclear factor Y (NF-Y) genes play important roles in many biological processes, such as leaf growth, nitrogen nutrition, and drought resistance. However, the biological functions of these transcription factor family members have not been systematically analyzed in maize. In the present study, a total of 52ZmNF-Ygenes were identified and classified into three groups in the maize genome. An analysis of the evolutionary relationship, gene structure, and conserved motifs of these genes supports the evolutionary conservation of NF-Y family genes in maize. The tissue expression profiles based on RNA-seq data showed that all genes apart fromZmNF-Y16,ZmNF-YC15, andZmNF-YC17were expressed in different maize tissues. A weighted correlation network analysis was conducted and a gene co expression network method was used to analyze the transcriptome sequencing results; six core genes responding to drought and rewatering were identified. A real time fluorescence quantitative analysis showed that these six genes responded to high temperature, drought, high salt, and abscisic acid (ABA) treatments, and subsequent restoration to normal levels.ZmNF-YC12was highly induced by drought and rewatering treatments. The ZmNF-YC12 protein was localized in the nucleus, and the Gal4-LexA/UAS system and a transactivation analysis demonstrated thatZmNF-YC12in maize (Zea mays L.) is a transcriptional activator that regulates drought resistance and recovery ability. SilencingZmNF-YC12reduced net photosynthesis, chlorophyll content, antioxidant (superoxide dismutase, catalase, peroxidase and ascorbate peroxidase) system activation, and soluble protein and proline contents; it increased the malondialdehyde content, the relative water content, and the water loss rate, which weakened drought resistance and the recoverability of maize. These results provide insights into understanding the evolution of ZmNF-Y family genes in maize and their potential roles in genetic improvement. Our work provides a foundation for subsequent functional studies of the NF-Y gene family and provides deep insights into the role of theZmNF-YC12regulatory network in controlling drought resistance and the recoverability of maize.