Anthocyanins play an important role in the growth of plants, and are beneficial to human health. In plants, the MYB-bHLH-WD40 (MBW) complex activates the genes for anthocyanin biosynthesis. However, in rice, the WD40 regulators remain to be conclusively identified. Here, a crucial anthocyanin biosynthesis gene was fine mapped to a 43.4-kb genomic region on chromosome 2, and a WD40 gene OsTTG1 (Oryza sativa TRANSPARENT TESTA GLABRA1) was identified as ideal candidate gene. Subsequently, a homozygous mutant (osttg1) generated by CRISPR/Cas9 showed significantly decreased anthocyanin accumulation in various rice organs. OsTTG1 was highly expressed in various rice tissues after germination, and it was affected by light and temperature. OsTTG1 protein was localized to the nucleus, and can physically interact with Kala4, OsC1, OsDFR and Rc. Furthermore, a total of 59 hub transcription factor genes might affect rice anthocyanin biosynthesis, and LOC_Os01g28680 and LOC_Os02g32430 could have functional redundancy with OsTTG1. Phylogenetic analysis indicated that directional selection has driven the evolutionary divergence of the indica and japonica OsTTG1 alleles. Our results suggest that OsTTG1 is a vital regulator of anthocyanin biosynthesis, and an important gene resource for the genetic engineering of anthocyanin biosynthesis in rice and other plants.