When you have a cavity, the dentist will check to see how deep the hole is and how much damage has been done to the tooth. Then, after removing the decay, the filling will be created and placed in the hole. Once it is sealed, you will be ready to go.