The invention belongs to the technical field of traditional Chinese medicine preparations, and particularly relates to a preparation method of Xuanmaigangan granules. The preparation method of the Xuanmaigangan granules comprises the following steps: separately decocting and extracting radix scrophulariae to obtain a radix scrophulariae extracting solution, mixing and decocting radix ophiopogonis, liquorice and platycodon grandiflorum, extracting, mixing with the radix scrophulariae extracting solution, filtering, standing filtrate, concentrating, forming paste, adding auxiliary materials, and granulating, thereby obtaining the Xuanmaigangan granules. Wherein the medicinal materials are soaked before decoction and extraction, and medicine liquid is forced to circulate in the soaking process. According to the method disclosed by the invention, the material-liquid ratio, the dipping time, the boiling extraction temperature and pressure and the concentration temperature and pressure of the Xuanmaigangan particle extraction are controlled, and the traditional mixed extraction and water decoction mode is changed into the single water decoction extraction of the radix scrophulariae, so that the transfer rate of the harpagoside can reach more than 50% in the whole extraction production process, and is improved by more than 10% compared with that of the original process.