The invention belongs to the technical field of traditional Chinese medicine preparation, and relates to a traditional Chinese medicine composition for treating sore throat and constipation and a preparation method thereof, in particular to a medicament prepared from the raw material drugs with effective components such as silkworm excrement, rhubarb, figwort, Chinese honeylocust fruit, red paeony root, dwarf lilyturf turber, forsythia, radix isatidis, rehmannia, honeysuckle, rhizome imperatae, tree peony bark, natural indigo, fritillaria cirrhosa, mint, and licorice and used for clearing away heat and toxic materials and relieving sore throat and pain, and treating diseases such as sore throat caused by pneumogastric intrinsic heat, fever and fidget, constipation, children acute pharyngitis, acute tonsillitis, and the like and a preparation method thereof. The invention also discloses a recipe for gelata prepared by extracting and mixing sixteen medicinal materials such as silkworm excrement, rhubarb and the like, quality standard, and a quality inspection method. The dosage form has the advantages of convenience for taking and carrying, good mouth feel, and easy acceptance by children, overcomes the defect that pills and tablets are difficult for the children to take, and is remarkably superior to cleaning pills.