Our study, employing Mendelian Randomization, reveals a significant causal relationship between acute pancreatitis and specific immune cell traits, particularly highlighting that CD127 on CD28+ CD45RA- CD8br T cells contributes to 5.296% of the increased risk of sepsis in AP patients. The gene discussed is IL7R; the disease is acute pancreatitis.