The bloating and farting at night may be caused by poor diet, indigestion, gastroenteritis, poor gastrointestinal motility and so on. 1. Poor diet: you may eat too much protein and gas-producing food, which leads to excessive gas production in the intestines, resulting in an increase in the amount of exhaust, so your stomach is bloated at night and you want to fart. 2. Indigestion: Eating food that is not easy to digest, and slowing down of intestinal peristalsis after going to bed at night, leading to accumulation of food in the intestines, which produces a large amount of gas and causes flatulence and farting. 3. Gastroenteritis: a decrease in the peristalsis function of the gastrointestinal tract can lead to bloating and farting at night. 4. Poor peristalsis of the gastrointestinal tract: this condition will cause food to accumulate in the gastrointestinal tract, and during the time it stays, the bacteria in the gastrointestinal tract can break down the food and cause bloating. It is recommended that patients can take a proper walk after dinner, which will help the digestion and absorption of food in the intestinal tract, and also help intestinal peristalsis, which will help the gas in the intestinal tract to be discharged out of the body. There may be other causes of bloating and farting at night, such as intestinal tumors, irritable bowel syndrome, peptic ulcers, and it is recommended that the patient consult a doctor in a timely manner to clarify the cause of the disease and treat it under the doctor’s instructions to avoid delaying the condition.