How and what a dentist does in procedure of teeth filling?
All decayed/carious tooth structure caused by action of microorganisms is removed first. This is followed by placement of a suitable filling material in place of the removed tooth structure to restore normal functioning and prevent further decay.
Fillings when done using proper technique usually last long.