Fluoride is effective in preventing cavities and tooth decay by coating your teeth and preventing plaque from building up and hardening on the tooth's surface.