A nitpick of this comment would be that caries are an autoimmune response caused by the acids that sugars (and some other foods) induce in your saliva. When you eat sugar, your body creates acid to break it down, and the presence of the acid in your mouth after the sugar is gone results in an autoimmune-style attack on your enamel.