Please tell me what causes cavities in your teeth?

Bacteria. Decay is caused by the bacteria in your teeth. They are fed by the sugars that you eat and produce acid that destroys the tooth. The best way to prevent decay is by eating a healthy low sugar diet, good brushing and flossing and regular dental care.