27Tumor immune microenvironment (TIME) plays an important role in metastasis and 28 immunotherapy. However, it has been not much known how to classify TIMEs and how TIMEs are 29 genetically regulated. Here we showed that tumors were classified into TIME-rich, -intermediate and -30 poor subtypes which had significant differences in clinical outcomes, abundances of tumor-infiltrating 31 lymphocytes (TILs), degree of key immune programs' activation, and immunotherapy response across 32 13 common cancer types (n= ~6,000). Furthermore, TIME-intermediate/-poor patients had significantly 33 more inherited genetic defects (i.e., functional germline variants) in natural killer (NK) cells, antigen 34 processing and presentation (APP) and Wnt signaling pathways than TIME-rich patients, and so did 35 cancer patients than non-cancer individuals (n=4,500). These results suggested that individuals who 36 had more inherited defects in NK cells, APP and Wnt pathways had higher risk of developing 37 cancers. Moreover, in the 13 common cancers the number of inheritably defected genes of NK 38 cells was significantly negative-correlated with patients' survival, TILs' abundance in TIMEs and 39 immunotherapy response, suggesting that inherited defects in NK cells alone were sufficient to shape 40 TILs' recruitment, clinical outcome and immunotherapy response, highlighting that NK cell activation 41 was required in the 13 cancer types to drive the recruitment of immune troops into TIMEs. Thus, we 42proposed that cancer was a disease of NK cell inherited deficiencies. These results had implications in 43 identifying of high-risk individuals based on germline genomes, implementing precision cancer 44 prevention by adoptive transfer of healthy NK cells, and improving existing immunotherapies by 45 combining of adoptive NK cell transfer (i.e., converting TIME-intermediate/-poor tumors into TIME-46 rich tumors) in and anti-PD-1 or CAR-T therapy. 47 48 49