A gluten-free diet is used to treat celiac disease. Celiac disease causes inflammation and damage in the small intestines when a person who has the condition eats gluten. Eating a gluten-free diet helps people with celiac disease control their symptoms and prevent complications.