Serine protease inhibitors (serpins) appear to be ubiquitous in almost all living organisms, with a conserved structure and varying functions. Serpins can modulate immune responses by negatively regulating serine protease activities strictly and precisely. The codling moth, Cydia pomonella (L.), a major invasive pest in China, can cause serious economic losses. However, knowledge of serpin genes in this insect remain largely unknown. In this study, we performed a systematic analysis of the serpin genes in C. pomonella, obtaining 26 serpins from the C. pomonella genome. Subsequently, their sequence features, evolutionary relationship, and expression pattern were characterized. Comparative analysis revealed the evolution of a number of serpin genes in Lepidoptera. Importantly, the evolutionary relationship and putative roles of serpin genes in C. pomonella were revealed. Additionally, selective pressure analysis found amino acid sites with strong evidence of positive selection. Interestingly, the serpin1 gene possessed at least six splicing isoforms with distinct reactive-center loops, and these isoforms were experimentally validated. Furthermore, we observed a subclade expansion of serpins, and these genes showed high expression in multiple tissues, suggesting their important roles in C. pomonella. Overall, this study will enrich our knowledge of the immunity of C. pomonella and help to elucidate the role of serpins in the immune response.