If there is bleeding during defecation, you should pay attention to go to the anorectal department in time to see a doctor. You can check whether the patient has anemia through blood routine examination. If there is severe anemia, you should also actively give blood transfusion treatment. The color of blood should also be distinguished after the occurrence of stool bleeding. If the color is bright red, it means that the bleeding site is close to the anal margin. The common causes are hemorrhoids, anal fissure, rectal polyps or adenoma and other diseases. If the stool color is black, it may be upper gastrointestinal bleeding, the common reason may be bleeding from gastroduodenal ulcer, or it may be blood in stool caused by intestinal polyps, which can be diagnosed through gastroscopy or small intestinal capsule endoscopy. If the patient has ulcerative colitis, sometimes it will also cause blood in stool, and mucopurulent stool will usually appear after combined infection.