The invention relates to the technical field of traditional Chinese medicines, and in particular relates to a foot bath traditional Chinese medicine composition for treating epigastric pain and insomnia, and a preparation method and application thereof. The composition comprises the following raw materials: rhizoma atractylodis, rhizoma pinelliae preparata, oyster, keel, magnet, caulis spatholobi,ligusticum wallichii, rhizoma acori graminei, medicated leaven, tuber fleeceflower stem, cortex albiziae, eupatorium, pawpaw, folium artemisiae argyi, nacre mother of pearl, polygala tenuifolia, piper cubeba, salvia miltiorrhiza, cynanchum paniculatum, peanut leaf, cinnamon and fructus piperis longi. The foot bath traditional Chinese medicine composition disclosed by the invention can play the roles of warming spleen and stomach, dispelling cold, relieving pain, promoting blood circulation, promoting qi circulation, relieving pain and calming the nerves through foot bath, is high in pain relieving capacity and good in sleep promoting effect, can effectively improve stomachache symptoms and insomnia symptoms concurrent with stomachache symptoms or insomnia symptoms caused by other reasons,can also remove stomachache causes, avoids relapse, and has the advantages of definite curative effect, simplicity and convenience in operation and good patient compliance in the aspect of treating epigastric pain.