Having a toothache is a common sign of a dental cavity.  The only way to treat a dental cavity is to visit the dentist. Dentists usually repair a tooth cavity by removing the decayed part of the tooth and replacing it with a tooth filling.
Several materials and options are available to repair a tooth cavity:
Amalgam — Durable, easy to use, highly resistant to wear and economical. Amalgam is typically silver or black in color and contains mercury.

Composite — A tooth-colored mixture of glass and quartz in a resin medium. Composite resin fillings are less noticeable than amalgam but not as durable.

Glass Lumineers — A translucent, tooth-colored mixture of acrylic acids and fine glass powders.

Porcelain — A ceramic material that mimics a tooth’s natural color. Porcelain is very durable and virtually invisible to the naked eye.
Combining healthy eating habits with these steps can help reduce the risk of cavities even more:

– Brush twice a day with fluoride toothpaste.
– Floss daily
– Use supplemental fluoride (if approved by your dentist)
– Ask your dentist about getting dental sealants.

Studies show that cavities are particularly common in children and young adults, but dental cavities can affect anyone. So, practice good oral hygiene and schedule regular dental visits.