The invention discloses a preparation method of bowel clearing granules before urinary surgery endoscopic operation, which aims to solve the problem of treatment before urinary surgery endoscopic operation. The invention is characterized by comprising the following active pharmaceutical ingredients in parts by weight: Horseweed herb, Fructus Cinnamomi, ternate buttercup root, Trachelospermum jasminoides, Alyxia root and herb, mulberry seed, himalayan teasel root, dried orange peel, sunflower, Turbo cornutus Solander, Amblystegium serpens and magnesium sulfate. The preparation method comprises the following steps: (1) extracting volatile oils from himalayan teasel root, Fructus Cinnamomi and Alyxia root and herb coarse powders for later use; (2) pulverizing Turbo cornutus Solander and Amblystegium serpens into fine powders for later use; (3) decocting horseweed herb, ternate buttercup root, Trachelospermum jasminoides, mulberry seed, sunflower and dried orange peel with water 2 times, filtering, merging the filtrates, concentrating the filtrate, adding ethanol to precipitate, taking the supernatant, recovering the ethanol, and concentrating to obtain a thick paste; and (4) adding the volatile oils obtained in the step 1, the fine powders obtained in the step 2, and magnesium sulfate into the thick paste obtained in the step 3, stirring uniformly, granulating, and drying. The clinical experiment proves that the invention has the characteristic of favorable bowel clearing effect before urinary surgery endoscopic operation, and is worthy of clinical application and popularization.