In summary, we identified NUPR1 and TRIB3 as critical ER stress-related genes in DLBCL. NUPR1 might be involved in immune infiltration in DLBCL, and TRIB3 might serve as a potential therapeutic target and prognostic factor in DLBCL. Here, NUPR1 is linked to diffuse large B-cell lymphoma.