A filling may be needed when you have a cavity in your tooth. Your dentist will first clean out the cavity and remove any decaying material and bacteria. You will then receive a filling to fill in the hole in the tooth to protect your tooth from further decay.