Background Synaptotagmins (SYTs) are a family of proteins whose primary function is serving as a calcium sensor in vesicle transport and exocytosis, playing an important role in the function of immune cells. There is also a close relationship between immune cells and tumours. SYT4 is one molecule involved in this relationship, but the relationship between SYT4 and cancer remains unclear. Therefore, we hypothesize that SYT4 can affect the prognosis of cancer, and may be related to immune cells. Methods The following databases were used to study the immunological and prognostic role of SYT4 in cancers: Oncomine, Kaplan-Meier plotter, The Human Protein Atlas, CCLE, GEPIA2, TIMER, and CGGA. Results SYT4 expressions were lower in many cancers than in normal tissues. Specifically in gastric cancer and lower-grade gliomas, SYT4 played a protective and harmful role, respectively. Moreover, a difference between SYT4 expression and the levels of immune infiltration existed in stomach adenocarcinoma (STAD) and brain lower-grade glioma (LGG). In addition, we found that the relationship between markers of monocytes, M1 and M2 macrophages, tumour-associated macrophages (TAMs), Treg cells, B lymphocytes, dendritic cells (DCs) and SYT4 expression was opposite in STAD and LGG. Conclusions The effect of SYT4 on the prognosis of patients with STAD and LGG was opposite. And SYT4 has different effects on immune infiltration in these two tumours. Therefore, SYT4 might be a potential prognostic and tumour immune-related biomarker in STAD and LGG.