A filling is a way to restore the former healthy function and appearance of a decayed tooth. Your doctor first cleans the rotten tissue and then fills the space with filling material. Thus, the gaps where bacteria can nest are closed and further decay of the tooth is prevented.
Different materials can be used for the filling. For example: gold, porcelain, composite resin (white filling) and amalgam (silver color)...