We find that ZDHHC3, a zinc finger DHHC-type palmitoyltransferase, palmitoylates B7-H4 at Cys130 in breast cancer cells, preventing its lysosomal degradation and sustaining B7-H4-mediated immunosuppression. Here, ZDHHC3 is linked to breast cancer.