The PPI network and KEGG results all showed that Xiaochaihu decoction functioning in the treatment of insomnia was involved with MAPK3 and TP53 which was further confirmed by molecular docking technology. This evidence concerns the gene MAPK3 and insomnia.