Summarize this article:

Brush your teeth twice daily. Also, try to floss once daily. If you neglect your teeth, you have a higher risk of developing tooth abscesses. If you constantly eat foods high in sugar (e.g. candy, chocolate), you can increase your risk for cavities. Cavities can lead eventually to abscesses. Some sugary foods are fine but eat them in moderation. If possible, brush afterwards. If you have an untreated cavity or a tooth fracture that reaches the dental pulp (inner part of your tooth), you risk developing an abscess. This happens when bacteria reaches your dental pulp, which is the inside of your tooth. See a dentist as soon as possible, and watch for any symptoms. Cavities and trauma typically lead to a "periapical abscess." An injury to the gums can cause an abscess. Gum disease causes the space between the tooth and the gum to widen, which allows bacteria to enter. This bacteria can cause an abscess, even if the teeth are healthy and cavity-free. If you have any issues with your gums, watch for symptoms of an abscess. Gum injuries and gum disease typically lead to a particular kind of infection known as a "gingival abscess" (or "gum abscess"). If the infection extends to the gum pockets, and the draining of pus is blocked by the swallowed gum, it is then called a "periodontal abscess."
Maintain good dental hygiene. Avoid sugary foods. Watch for cavities and fractures. Pay attention to your gums.