Overall, our findings provided preliminary evidence of an association between NLRP1/NLRP3 and immune cell infiltration in GC and afforded insights into the mechanisms through which NLRP1 and NLRP3 regulate this process. Here, NLRP1 is linked to gastric cancer.