Although emerging studies showed that certain rhythm genes regulate cancer progression, the expression and roles of the vast majority of rhythm genes in human cancer are largely unknown, and the hallmarks of cancer regulated by rhythm genes have not been detected. In this study, we detected the expression changes of rhythm genes in pan‐cancer and found that almost all rhythm genes mutated in all cancer types, and their expression level was significantly altered partially due to abnormal methylation, and several rhythm genes regulate the expression of other rhythm genes in various cancer types. Furthermore, we revealed that rhythm genes are significantly enriched in genome instability and the expression of certain rhythm genes is correlated with the tumor mutation burden, microsatellite instability, and the expression of DNA damage repair genes in most of the detected cancer types. Moreover, rhythm genes are associated with the infiltration of immune cells and the efficiency of immune blockade therapy. This study provides a comprehensive understanding of the roles of rhythm genes in cancer immunity, which may provide a novel method for the diagnosis and treatment of cancer.