An abscess is a collection of pus. Abscesses can happen when your body is fighting germs that cause an infection. White blood cells gather in the place where the germs are and make pus. An abscess can cause swelling and hurt. You can get an abscess inside your body, in a tooth, or in your skin.