Deuterated quinazolinone compounds and pharmaceutical compositions containing such compounds are provided. In particular, deuterated quinazolinone compounds of formula (I) are provided, as well as pharmaceutical compositions containing such compounds or crystal form, pharmaceutically acceptable salts, hydrates or solvates thereof. The deuterated quinazolinone compounds of formula (I) can be used for treating and/or preventing PI3K kinase-associated diseases, such as cancer, cell proliferative diseases and the like.