An anal fistula is a small tunnel that develops between the end of the bowel and the skin near the anus, usually the result of an infection near the anus causing a collection of pus in the nearby tissue.