Abstract Background Dendrobium Sw. represents one of the most expansive genera within the Orchidaceae family, renowned for its species’ high medicinal and ornamental value. In higher plants, the ankyrin (ANK) repeat protein family is characterized by a unique ANK repeat domain, integral to a plethora of biological functions and biochemical activities. The ANK gene family plays a pivotal role in various plant physiological processes, including stress responses, hormone signaling, and growth. Hence, investigating the ANK gene family and identifying disease-resistance genes in Dendrobium is of paramount importance. Results This research identified 78 ANK genes in Dendrobium officinale Kimura et Migo, 77 in Dendrobium nobile Lindl., and 58 in Dendrobium chrysotoxum Lindl. Subsequently, we conducted comprehensive bioinformatics analyses on these ANK gene families, encompassing gene classification, chromosomal localization, phylogenetic relationships, gene structure and motif characterization, cis-acting regulatory element identification, collinearity assessment, protein-protein interaction network construction, and gene expression profiling. Concurrently, three DoANK genes (DoANK14, DoANK19, and DoANK47) in D. officinale were discerned to indirectly activate the NPR1 transcription factor in the ETI system via SA, thereby modulating the expression of the antibacterial PR gene. Hormonal treatments with GA3 and ABA revealed that 17 and 8 genes were significantly up-regulated, while 4 and 8 genes were significantly down-regulated, respectively. DoANK32 was found to localize to the ArfGAP gene in the endocytosis pathway, impacting vesicle transport and the polar movement of auxin. Conclusion Our findings provide a robust framework for the taxonomic classification, evolutionary analysis, and functional prediction of Dendrobium ANK genes. The three highlighted ANK genes (DoANK14, DoANK19, and DoANK47) from D. officinale may prove valuable in disease resistance and stress response research. DoANK32 is implicated in the morphogenesis and development of D. officinale through its role in vesicular transport and auxin polarity, with subcellular localization studies confirming its presence in the nucleus and cell membrane. ANK genes displaying significant expression changes in response to hormonal treatments could play a crucial role in the hormonal response of D. officinale, potentially inhibiting its growth and development through the modulation of plant hormones such as GA3 and ABA.