A toothache that prevents you from sleeping is usually caused by teeth with pulpitis, periodontitis, acute apical periodontitis, and other causes. It can be treated by root canal surgery and taking amoxicillin dispersible tablets and ibuprofen extended-release capsules for different diseases. 1. Pulpitis: Pulpitis causes inflammation of the tooth, resulting in high pressure in the pulp chamber, which presses on the nerve of the tooth, thus causing a toothache and sleeplessness. It can be treated with root canal therapy. When pulpitis is purulent, there is hot pain and cold pain, and the pain can be temporarily relieved by holding cool water in the mouth. 2. Periodontitis: Periodontitis can lead to bleeding gums, loose teeth, thus causing toothache and sleeplessness. Patients should be timely periodontal treatment, and can take amoxicillin dispersible tablets, metronidazole tablets, etc. for relief. 3. Acute apical periodontitis: acute apical periodontitis will lead to periodontal membrane congestion, vasodilatation, plasma oozing to form edema, there will be a toothache and sleeplessness. Patients can carry out root canal treatment, if necessary, with the use of ibuprofen extended-release capsules, cefadroxil tablets, etc. for relief. Patients in the case of toothache can not sleep, it is recommended to go to the hospital stomatology department to check the cause of the disease and make the appropriate treatment, the specific drugs under the guidance of the doctor to take.