The main purpose of the IBS diet is to identify and eliminate trigger foods that can worsen symptoms of Irritable Bowel Syndrome, such as abdominal pain, bloating, and bowel irregularities.