Given the importance of PD-1 and PD-L1 in both cancer cells and immune cells, polypeptide sequences containing PD-L1 palmitoylation sites were developed to inhibit the palmitoylation of endogenous PD-L1 by competitively binding to ZDHHC3. This evidence concerns the gene ZDHHC3 and cancer.