How to take care of your oral health?

What factors truly make a difference in preventing you from needing a filling at every dental checkup?