The invention relates to a preparation method and application of 5-(1H-
pyrrole-1-yl)-2-mercaptobenzimidazole, according to the preparation method, key parameters such as an ester extraction
solvent, a pH adjusting range, a pulping
solvent, a ratio of a concentrated solution to the pulping
solvent and the like are determined to cooperate with each other, and efficient separation and purification of a product are realized. And the synergistic improvement of economy,
environmental protection, high yield and high content is realized. The solvents and reagents selected in the whole process are conventional chemical raw materials, are low in price and easy to obtain, and the solvents and
mother liquor can be recycled and reused, so that the production cost is further reduced; the operation process is simplified, the production cost and the
environmental protection pressure are reduced, and the
environmental protection requirement of industrial production is met; the yield of the target product can be stably kept at 74% or above, the purity can reach 99% or above, and the content is higher than 97%. The prepared product can be applied to preparation of
ilaprazole, meets the quality requirement for preparation of qualified
ilaprazole bulk drugs, and has important industrial application value.