By screening the DEGs that had a significant impact on the prognosis of thymoma, we identified LIPE, MYH6, ACTG2, KLF4, SULT4A1, and TF as key genes. The gene discussed is KLF4; the disease is thymoma.