In summary, our results indicate that ivermectin suppressed the AR and E2F signaling pathways and DNA damage repair capacity by targeting FOXA1 and Ku70/Ku80 to inhibit cell proliferation and promote cell apoptosis in prostate cancer. This evidence concerns the gene XRCC6 and prostate cancer.