Homologous recombination deficiency (HRD) causes faulty double-strand break repair and is a prevalent cause of tumorigenesis. However, the incidence of HRD and its clinical significance in pan-cancer patients remain unknown. Using computational analysis of Single-nucleotide polymorphism array data from 10,619 cancer patients, we demonstrate that HRD frequently occurs across multiple cancer types. Analysis of the pan-cancer cohort revealed that HRD is not only a biomarker for ovarian cancer and triple-negative breast cancer, but also has clinical prognostic value in numerous cancer types, including adrenocortical cancer and thymoma. We discovered that homologous recombination–related genes have a high mutation or deletion frequency. Pathway analysis shows HRD is positively correlated with the DNA damage response and the immune-related signaling pathways. Single cell RNA sequencing of tumor-infiltrating lymphocytes reveals a significantly higher proportion of exhausted T cells in HRD patients, indicating pre-existing immunity. Finally, HRD could be utilized to predict pan-cancer patients’ responses to Programmed cell death protein 1 immunotherapy. In summary, our work establishes a comprehensive map of HRD in pan-cancer. The findings have significant implications for expanding the scope of Poly ADP-ribose polymerase inhibitor therapy and, possibly, immunotherapy.