A filling can help restore a tooth damaged by decay back to its normal function and shape. A filling also helps prevent further decay by closing off any cracks or spaces where bacteria can enter.