Swelling is basically because of the presence of infection. That can be gum infection or teeth infection. Gum infection is treated with a deep-cleaning procedure while teeth infection is treated with either root canal treatment or extraction of teeth. The doctor may prescribe antibiotics and pain killers.