The invention discloses a formula and a preparation method of a medicine used for treating pig high fever. The medicine comprises mint, chinese thorowax root, divaricate saposhnikovia, fineleaf schizonepeta herb, Chinese ephedra herb, common ducksmeat herb, honeysuckle flower, indigowoad leaf, weeping forsythia fruit, golden thread, male fern rhizome, skunk bugbane rhizome, mung bean, kakuda figwort root, peony tree root bark, raw rehmannia dried rhizome, red peony root, white peony root, lalang grass rhizome, gypsum, common anemarrhena, gardenia jasminoides, snakegourd root, henon bamboo leaf, Baikal skullcap root, swordlike atractylodes rhizome stir-fried with soil, talc, oriental waterplantain tuber, tuckahoe, asiatic plantain seed, akabia stem, raw hawthorn fruit, malt, medicated leaven, tangerine peel, officinal magnolia bark, saussureae radix, largehead atractylodes rhizome stir-fried with soil, raw licorice root, submature bitter orange, Szechwan lovage rhizome, peach seed, Chinese gentian, mulberry bark, rhubarb, mirabilite, and sanna leaf. The formula is designed according to a traditional Chinese medicine integrity concept. The medicine can effectively treat swine fever, and assists in preventing large-amount accumulation of toxin in pig bodies. With the medicine, liver can be effectively protected, pig immunity can be improved, and pig healthy growth can be promoted.