Multiple factors can result in a person developing symptomatic piles and these are generally associated with any condition that can cause an increase in the intra-abdominal pressure.
An anal abscess usually results from an acute infection of a small gland just inside the anus, when bacteria or foreign matter enters the tissue through the gland. Certain conditions, for example, inflammation of the intestine or colitis, can sometimes make these infections more likely.
After an abscess has been drained, a tunnel may persist connecting the anus or rectum to the skin. This is known as anal fistula. Persistent drainage of pus from the outside opening may indicate the presence of this tunnel.