In many cases, gas that smells especially bad is simply due to something you've eaten. Meat, eggs, cabbage, onions, garlic, or excessively fatty foods all contribute to foul-smelling gas. Alternatively, if you are lactose-intolerant and have any dairy products like milk, cheese, or yogurt, it's possible to create sulfurous odors.