Terpenes are the main class of secondary metabolites produced in response to pest and germ attacks. In maize (Zea mays L.), they are the essential components of the herbivore-induced plant volatile mixture, which functioned as a direct or indirect defense against pest and germ attacks. In this study, 43 maize terpene synthase gene (ZmTPS) family members were systematically identified and analyzed through the whole genomes of maize. Nine genes, including Zm00001d032230, Zm00001d045054, Zm00001d024486, Zm00001d004279, Zm00001d002351, Zm00001d002350, Zm00001d053916, Zm00001d015053, and Zm00001d015054, were isolated for their differential expression pattern in leaves after corn borer (Ostrinia nubilalis) bite. Additionally, six genes (Zm00001d045054, Zm00001d024486, Zm00001d002351, Zm00001d002350, Zm00001d015053, and Zm00001d015054) were significantly upregulated in response to corn borer bite. Among them, Zm00001d045054 was cloned. Heterologous expression and enzyme activity assays revealed that Zm00001d045054 functioned as d-limonene synthase. It was renamed ZmDLS. Further analysis demonstrated that its expression was upregulated in response to corn borer bites and Fusarium graminearum attacks. The mutant of ZmDLS downregulated the expressions of Zm00001d024486, Zm00001d002351, Zm00001d002350, Zm00001d015053, and Zm00001d015054. It was more attractive to corn borer bites and more susceptible to F. graminearum infection. The yeast one-hybrid assay and dual-luciferase assay showed that ZmMYB76 and ZmMYB101 could upregulate the expression of ZmDLS by binding to the promoter region. This study may provide a theoretical basis for the functional analysis and transcriptional regulation of terpene synthase genes in crops.