Programmed death protein 1 (PD1) is a common immunosuppressive member on the surface of T cells and plays an imperative part in downregulating the immune system and advancing self-tolerance. Its ligand programmed cell death ligand 1 (PDL1) is overexpressed on the surface of malignant tumor cells, where it binds to PD1, inhibits the proliferation of PD1-positive cells, and participates in the immune evasion of tumors leading to treatment failure. The PD1/PDL1-based pathway is of great value in immunotherapy of cancer and has become an important immune checkpoint in recent years, so understanding the mechanism of PD1/PDL1 action is of great significance for combined immunotherapy and patient prognosis. The inhibitors of PD1/PDL1 have shown clinical efficacy in many tumors, for example, blockade of PD1 or PDL1 with specific antibodies enhances T cell responses and mediates antitumor activity. However, some patients are prone to develop drug resistance, resulting in poor treatment outcomes, which is rooted in the insensitivity of patients to targeted inhibitors. In this paper, we reviewed the mechanism and application of PD1/PDL1 checkpoint inhibitors in tumor immunotherapy. We hope that in the future, promising combination therapy regimens can be developed to allow immunotherapeutic tools to play an important role in tumor treatment. We also discuss the safety issues of immunotherapy and further reflect on the effectiveness of the treatment and the side effects it brings.