Traditional Chinese medicine (TCM) has been used for thousands of years. Most Chinese herbal formulae consist of several herbal components and have been used to treat various diseases. However, the mechanisms of most formulae and the relationship between formulae and their components remain to be elucidated. Here we analyzed the putative mechanism of San-Huang-Xie-Xin-Tang (SHXXT) and defined the relationship between SHXXT and its herbal components by microarray technique. HepG2 cells were treated with SHXXT or its components and the gene expression profiles were analyzed by DNA microarray. Gene set enrichment analysis indicated that SHXXT and its components displayed a unique anti-proliferation pattern via p53 signaling, p53 activated, and DNA damage signaling pathways in HepG2 cells. Network analysis showed that most genes were regulated by one molecule, p53. In addition, hierarchical clustering analysis showed that Rhizoma Coptis shared a similar gene expression profile with SHXXT. These findings may explain why Rhizoma Coptis is the principle herb that exerts the major effect in the herbal formula, SHXXT. Moreover, this is the first report to reveal the relationship between formulae and their herbal components in TCM by microarray and bioinformatics tools.