An anal fistula is a small tunnel or tract that forms between the inside of the anal canal and the skin surrounding the anus. It is generally the result of a previous infection of the anal glands that leads to the formation of an abscess (an infected cavity filled with pus) which, when drained, leaves this permanent channel.