In this study, we describe the synthesis and biological evaluation of new pyrazolopyrimidine derivatives as AhR antagonists for cancer immunotherapy. The gene discussed is AHR; the disease is cancer.