Gastric cancer is the second cause of cancer-related deaths worldwide. Helicobacter pylori is the major risk factor for gastric cancer. As for any type of cancer, T cells are crucial for recognition and elimination of gastric tumor cells. Unfortunately T cells, instead of protecting from the onset of cancer, can contribute to oncogenesis. Herein we review the different types, "friend or foe", of T-cell response in gastric cancer.