Gluten is a protein found in certain grains and it can destroy the lining of the small intestine making a permeable gut (leaky gut) which then allows particles to escape into the bloodstream and the body sees it as a foreign object and attacks it. (I am really paraphrasing here).