Patients with cavity pain may be related to dental caries, pulpitis, apical periodontitis and other factors, patients can relieve the condition through general treatment, medication, surgical treatment and other ways. 1. Dental caries: after taking X-ray film, if the caries is not bad to the tooth nerve, only hot and cold stimulation with pain, need to clean and prepare the cavity for filling treatment. 2. Pulpitis: If deep caries is not controlled in time, it will develop into pulpitis, which will have spontaneous, cold stimulation aggravate the pain symptoms, and night pain is an acute attack of chronic pulpitis, which requires root canal treatment to clean the infected and inflamed materials in the root canal, remove the nerve, anti-inflammatory, disinfection, and filling of the root canal. 3. Periapical periodontitis: Most of the periapical periodontitis is secondary to endodontic disease, and the pulp of the patient’s teeth cannot be preserved, and if it is not treated in time, it may not even be possible to preserve the affected teeth, which should be surgically treated by apical induction molding, apical surgery, root canal treatment, etc. The patient should avoid biting hard teeth before visiting the clinic, and avoid biting hard teeth. Patients should avoid biting hard objects to avoid aggravating the pain before consultation. If the infection is serious, antibiotics, such as metronidazole and cefixime, need to be taken as prescribed by the doctor. It is recommended that patients pay attention to oral hygiene in their lives, brushing their teeth every morning and evening, rinsing their mouths after meals to keep their mouths clean, and if the pain worsens, they need to consult a doctor for treatment in a timely manner, and strictly follow the doctor’s instructions to use medication, and do not delay the condition of the medication privately.