Integral membrane glycoprotein that plays an essential role in the immune response and serves multiple functions in responses against both external and internal offenses. In T-cells, functions primarily as a coreceptor for MHC class I molecule:peptide complex. The antigens presented by class I peptides are derived from cytosolic proteins while class II derived from extracellular proteins. Interacts simultaneously with the T-cell receptor (TCR) and the MHC class I proteins presented by antigen presenting cells (APCs). In turn, recruits the Src kinase LCK to the vicinity of the TCR-CD3 complex. A palmitoylation site in the cytoplasmic tail of CD8B chain contributes to partitioning of CD8 into the plasma membrane lipid rafts where signaling proteins are enriched. Once LCK recruited, it initiates different intracellular signaling pathways by phosphorylating various substrates ultimately leading to lymphokine production, motility, adhesion and activation of cytotoxic T-lymphocytes (CTLs). Additionally, plays a critical role in thymic selection of CD8+ T- cells. {ECO:0000250|UniProtKB:P10300, ECO:0000269|PubMed:10925291, ECO:0000269|PubMed:11714755, ECO:0000269|PubMed:17145893}. This is the function of Ensembl gene identifier ENSG00000172116 (CD8B, CD8 subunit beta).