Pulmonary tuberculosis (PTB) is one of the most common infectious diseases worldwide, with extremely high morbidity and mortality. An in-depth understanding of the molecular pathogenesis of PTB is crucial for finding novel diagnostic and therapeutic approaches in the future. In this study, we identified 52 differentially expressed genes (DEGs) from the GSE34608 dataset in the Gene Expression Omnibus (GEO) database, and the protein-protein interaction (PPI) network showed that these DEGs included 42 nodes and 20 edges. We found that CARD11 and MYO1G were closely associated with T cell activation by functional enrichment analysis. Upon further clinical case analysis, we found that the expressions of CARD11 and MYO1G in the peripheral blood of patients with PTB were lower than those of healthy individuals. Meanwhile, through Receiver operating characteristic (ROC) curve analysis, we found that CARD11 and MYO1G showed excellent diagnostic effects on the occurrence and prognosis of PTB recurrence. Thus, CARD11 and MYO1G are promising indicators for assessing PTB in the future.