The present invention relates to compositions with a synergistic action between a mucoadherent gelling complex against the passage of antigens, and immunomodulatory anti-IL17 bacteria for use in the treatment of IL-17-related autoimmune and neurodegenerative diseases.