Farts can tell you a lot about your health; they're not just funny or embarrassing cultural stigmas. Sometimes foods are the root cause of your smelly farts.
Broccoli, almonds, cauliflowers, and Brussels sprouts can all have this affect. Foods high in sulfur like eggs and meat can also make your farts smelly. That doesn't mean you should avoid these foods though.
"Bacteria that make sulfide gas are really important," says Purna Kashyap, a gastroenterologist at the Mayo Clinic. "They can cause smelliness, but they can reduce the total amount of gas flow."