The ketogenic diet could help manage multiple sclerosis (MS) by promoting the production of beneficial compounds in the gut.