In this study, by identifying and classifying infiltration data for CD8 + T cells, Tregs (FOXP3 +), and M1 (CD86 +) and M2 (CD206 +) macrophages in HCC tissues according to tumor cell density, we found that the ratio of Tregs/CD8 + T cells fluctuated with increasing tumor cell density, while the ratio of M2/M1 macrophages did not change significantly. The gene discussed is FOXP3; the disease is neoplasm.