Foods high in calcium and magnesium play a small role in strengthening and preserving healthy enamel and preventing cavities. Consuming these kinds of food on a regular basis can help protect your teeth against cavities by building more durable tooth enamel.
These foods include:
Milk
Cheese
Yogurt
Spinach
Beans
Nuts
Cashews