There are many glands around the anorectal area. Various reasons can lead to blockage of the opening of these glands and this can cause 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 rectal area. These abscesses can be deep or on the surface of the skin.