The invention provides anorectal gel which has the effects of moisturizing, relieving itching, cooling, stopping bleeding, diminishing inflammation, easing pain, promoting healing of mucosal inflammation, regulating intestinal functions and improving human immunity, and provides a preparation method of the anorectal gel. The anorectal gel comprises the following components: 0.05 to 0.5 part by weight of hyaluronic acid or sodium salt thereof, 5 to 20 parts by weight of pearl powder, 5 to 10 parts by weight of freeze-dried powder of live bifidobacterium, 0.05 to 2 parts by weight of sodium azulene sulfonate, 0.01 to 2 parts by weight of borneol and 68.5 to 90 parts by weight of water. The preparation method of the gel comprises the following steps: dissolving the sodium azulene sulfonate insterile water, sequentially adding the freeze-dried powder of bifidobacterium, pearl powder and borneol, stirring the mixture uniformly, adding hyaluronic acid, and carrying out uniform stirring to obtain the anorectal gel. The anorectal gel prepared by the invention has the functions of moisturizing, relieving itching, cooling, stopping bleeding, diminishing inflammation, easing pain, promotinghealing of anorectal mucosa inflammation, regulating intestinal functions and improving human immunity, and can be used for rapidly relieving pain brought by anorectal diseases to patients, and promoting rapid healing of anorectal inflammation, micro-injury and wounds.