If a tooth is damaged by decay, a filling is used to restore the tooth and bring it back to its normal function and shape. By literally filling in spaces where bacteria can gather and add reinforcement, fillings help prevent further decay.