Ammopiptanthus mongolicus is an evergreen broad-leaved shrub growing in temperate regions. Plant defensins, a type of cysteine-rich small peptides, contribute to plant defense as antimicrobial peptides. In this study, we analyzed the evolution and expression patterns of the defensin gene family in A. mongolicus, and explored the function and regulatory mechanisms of the AmDEF2.7 gene in response to abiotic stress. Seven out of ten defensin genes had undergone segmental duplication and tandem duplication, especially, AmDEF2.6, AmDEF2.7, and AmDEF2.8, which were clustered on chromosome 9. The expression of multiple defensin genes was responsive to abiotic stress, with three defensin genes, including AmDEF2.7, showing significant induction during winter. Yeast expressing AmDEF2.7 gene exhibited increased resistance to freeze-thaw cycles and osmotic stress, while transgenic Arabidopsis overexpressing the AmDEF2.7 showed improved tolerance to both freezing and drought conditions. Furthermore, AmWRKY14 bound to the AmDEF2.7 gene promoter, and activated the expression of AmDEF2.7. These results highlighted the role of defensin AmDEF2.7 in the adaptation of A. mongolicus to temperate winter climate. This study expands our knowledge of plant defensin and provides support for clarifying the molecular mechanism of the adaptation of A. mongolicus to winter climate.