There are many glands around the anorectal or anal area. There are numerous reasons that can lead to blockage of the glands, which can lead to infection, pus accumulation, and swelling. This phenomenon is called anorectal or anal abscess. Anal abscess can develop in different areas, such as inside the anus, or in the rectum. These abscesses can develop in depth or on the surface of the skin.