B and T-lymphocyte attenuator (BTLA) plays an immunosuppressive role by inhibiting T- and B-cell functions. BTLA is associated with a variety of diseases, especially cancer immunity. However, the function of BTLA in various cancers and its clinical prognostic value have still not been comprehensively analyzed. This study aimed to identify the relationship between BTLA and cancer from the perspectives of differences in BTLA expression, its clinical value, immune infiltration, and the correlation with immune-related genes in various cancers. Data regarding mRNA expression, miRNA expression, lncRNA expression, and clinical data of patients of 33 existing cancers were collected from the TCGA database. Target miRNA of BTLA and the lncRNA that interacts with the target miRNA were obtained from the StarBase database. Based on bioinformatics analysis methods, the relationship between various types of cancers and BTLA was thoroughly investigated, and a competing endogenous RNA network of BTLA, target miRNA, and interacting lncRNA was constructed. The Kaplan-Meier (KM) prognostic analysis of BTLA and target miRNA (has-miR-137) in various types of cancers was completed using the KM plotter. BTLA expression varied in different cancers, with statistical significance in nine cancer types. KM plotter to analyze the overall survival (OS) and regression-free survival prognosis of cancer patients revealed that the BTLA expression was statistically different in the OS of 11 types of cancers out of 21 types of cancers; the OS of 8 type of cancers was also statistically different. Correlation analysis of tumor immune genes revealed a positive correlation of BTLA expression with immunosuppressive gene (CTLA4 and PDCD1) expression. Gene Set Enrichment Analysis showed that BTLA and its co-expressed genes mainly act through biological processes and pathways, including immune response regulation, cell surface receptor signaling pathway, antigen binding, antigen receptor-mediated signaling pathway, and leukocyte migration. BTLA has the potential as a prognostic marker for CLL, COAD, NSCLC, and OV and a diagnostic marker for CLL, COAD, and KIRC. BTLA has a close and complex relationship with the occurrence and development of tumors, and cancer immunotherapy for BTLA is worthy of further analysis.