Prolonged unformed stool and farting may be caused by irritable bowel syndrome, intestinal flora imbalance or gastrointestinal tumors, etc. It can be adjusted by lifestyle adjustment, taking medicines such as trimethoprim, mesalazine, bifidobacteria, etc. or surgery. 1. Lifestyle adjustment: Patients with long-term irregular bowel movement and farting should pay attention to adjusting their diet structure, avoiding gas-producing foods such as onions, beans and other irritating foods such as cold and spicy foods, as well as paying attention to dietary hygiene. Adopt good dietary habits, chew slowly, eat small meals and avoid overeating. 2. Take drugs: If it is caused by irritable bowel syndrome, you can take tramebutine tablets, loperamide and other drugs; if it is caused by inflammatory bowel disease, you can take LiuZiShiPiDi tablets, mesalazine and other anti-inflammatory drugs, or azathioprine and other immunomodulators. If the patient is due to dyspepsia, can take domperidone and other power drugs, or compound digestive enzymes and other digestive enzyme preparations; if it is due to intestinal dysbiosis, can take bifidobacteria and other intestinal probiotic preparations to regulate. 3. Surgery: If the patient is due to gastrointestinal polyps or gastrointestinal tumors and other diseases, surgical treatment can be considered under the guidance of the doctor to alleviate the symptoms. Patients with chronic farting are advised to seek timely medical attention to identify the cause of the problem and carry out targeted treatment. The medication should be taken in strict accordance with the doctor’s instructions, and should not be used on its own, so as not to delay or even aggravate the condition.