If tooth decay causes swelling and pain in the gums, first of all, we need to take radiographs to check and confirm the position of the tooth, and then we can take anti-inflammatory drugs to reduce the swelling, for example, the use of cefprozil, cefdinir plus metronidazole, which can effectively inhibit the development of the flora of the oral cavity, and can effectively eliminate the swelling and pain in the gums. Once the inflammation has been partially eliminated, the tooth can be opened to remove the pulp and contents, which can eliminate the infection. Chemical materials are applied to rinse and sterilize the root canals, followed by a tight filling with hot cement. After filling the root canals tightly, the crowns of the teeth are closed, and porcelain crowns and inlays are made to eliminate the inflammation of the tooth and to ensure that the tooth lasts for a long time.