Donor T cell STAT3 deficiency enables tissue PD-L1–dependent prevention of graft-versus-host disease while preserving graft-versus-leukemia activity. Here, CD274 is linked to leukemia.