A filling is needed when a cavity is present. The dentist will remove the decayed portion of the tooth then “fill” the area with a tooth-colored filling known as composite resins. Fillings are also used to repair cracked or broken teeth.