In summary, our study suggests that pentamidine holds the potential to be repurposed as a novel PD-L1 antagonist that may overcome the limitations of monoclonal antibody therapy and can emerge as a small molecule cancer immunotherapy. Here, CD274 is linked to cancer.