The invention belongs to the technical field of traditional Chinese medicine, and discloses a medicine for treating puerperal fever. The medicine is applied to treatment of puerperal fever, the medicine for treating puerperal fever is prepared from safflower, walnut, red date, fructus amomi and soybean ash through a series of preparation, the medicine for treating puerperal fever mainly has the effects of expelling wind, removing cold, removing dampness and promoting blood circulation to remove meridian obstruction, and is short in treatment course and quick in effect, and has obvious treatment effects on puerperal diseases such as headache, toothache and arthralgia of puerperae in confinement; a medicine preparation device comprises a support, the support is rotationally connected with a first roller, the outer surface of the first roller is sleeved with an annular rack, a second roller is arranged in the first roller, and a third roller is arranged in the second roller. According to the invention, rest medicinal materials are dried by means of soybean ash formed by roasting, under the high pressure intensity, the contact degree of all the components is enhanced, interpenetration of all the components is promoted, waste of effective components of all the components is reduced, and the treatment effect of the medicine is improved.