Pan-cancer analysis revealed that CLDN18 was prognostically and immunologically relevant across multiple types of cancer. Here, CLDN18 is linked to cancer.