Increasing evidences have demonstrated that pyroptosis exerts key roles in the occurrence, development of chronic obstructive pulmonary disease. However, the mechanisms of pyroptosis in COPD remain largely unknown. In our research, Statistics were performed using R software and related packages in this study. Series matrix files of small airway epithelium samples were downloaded from the GEO database. Differential expression analysis with FDR < 0.05 was performed to identify COPD-associated pyroptosis-related genes. 8 up-regulated genes (CASP4, CASP5, CHMP7, GZMB, IL1B, AIM2, CASP6, GSDMC) and 1 down-regulated genes (PLCG1) was identified as COPD-associated pyroptosis-related genes. Twenty-six COPD key genes was identified by WGCNA analysis. PPI analysis and gene correlation analysis showed their relationship clearly. KEGG and GO analysis have revealed the main pyroptosis-related mechanism of COPD. The expression of 9 COPD-associated pyroptosis-related genes in different grades was also depicted. The immune environment of COPD was also explored. Furthermore, the relationship of pyroptosis-related genes and the expression of immune cells was also be shown in the end. In the end, we concluded that pyroptosis influences the development of COPD. This study may provide new insight into the novel therapeutic targets for COPD clinical treatment.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12890-023-02408-5.