The main foods to avoid with IBS are high-FODMAP foods, gas-producing items, and those causing diarrhea, like fatty or fried foods.