Dentin is the technical name for your teeth; it’s almost bone-like and it makes up most of the structure of your teeth. It’s yellow in appearance; enamel is what gives teeth their bright white finish. Since enamel is relatively translucent, if not properly cared for by regular brushing, regular flossing and regular dental visits — your teeth can dull and become yellow as enamel starts to wear off. At that point, only the yellowish dentin is left.
Dentin is semi-reparable. It has reparative capabilities because the odontoblasts that create dentin remain viable after the teeth erupt. When excessive wear, cavities or other irritants start to degrade the dentin, reparative secondary dentin is laid down.
When you get dental cavities, you get them in dentin. But enamel can wear away by chewing ice or other irritants, thereby making dentin more susceptible to dental cavities and tooth loss.