If your gas smells bad, you may want to consider your diet. Foods with high sulfur composition, such as red meat, milk, or plant-based proteins, are the reason of the smell. When the bacteria in your gut is fed high-protein foods, they produce a sulfur gas.