An anorectal abscess is a pocket of pus that forms in the anus and/or the area just above it, called the rectum.
Most anorectal abscesses begin as bacterial infections of the glands in the anus that produce mucus. Infection can cause inflammation. Inflammation creates a wall around the bacteria and forms an abscess. This protective wall makes it hard for the immune system to fight the bacteria.
Most anorectal abscesses are caused by bacterial infection in the lining of the anus or rectum. Factors that increase a person's risk for an abscess include: