To treat a cavity we need to remove the decayed portion and the area needs to be filled. To fill the area, dental filling material is used. They are made of different materials like gold, silver, glass, etc. Before getting a filling, consult with your dentist what type of filling would be right for your teeth. Fillings do not generally hurt.