Once the decay has been removed, the resulting cavity preparation must be filled in order to restore the structural integrity of the tooth. This will prevent further damage to the tooth and hopefully avoid the eventual need for the tooth to be extracted.