Flatulence, also known as farting or passing gas, is the release of gas from the human digestive system through the anus. The gas is produced by the fermentation of undigested food by bacteria in the large intestine. The composition of flatulence varies depending on the individual and the foods they have consumed, but it typically contains a mixture of gases such as nitrogen, hydrogen, carbon dioxide, methane, and oxygen.