Stercobilin
Stercobilin is a tetrapyrrolic bile pigment and is one end-product of heme catabolism. It is the chemical responsible for the brown color of human feces and was originally isolated from feces in 1932. Stercobilin (and related urobilin) can be used as a marker for biochemical identification of fecal pollution levels in rivers.
Metabolism
Stercobilin results from breakdown of the heme moiety of hemoglobin found in erythrocytes. Macrophages break down senescent erythrocytes and break the heme down into biliverdin, which rapidly reduces to free bilirubin. Bilirubin binds tightly to plasma proteins (especially albumin) in the blood stream and is transported to the liver, where it is conjugated with one or two glucuronic acid residues into bilirubin diglucuronide, and secreted into the small intestine as bile. In the small intestine, some bilirubin glucuronide is converted back to bilirubin via bacterial enzymes in the terminal ileum. This bilirubin is further converted to colorless urobilinogen. Urobilinogen that remains in the colon can either be reduced to stercobilinogen and finally oxidized to stercobilin, or it can be directly reduced to stercobilin. Stercobilin is responsible for the brown color of human feces. Stercobilin is then excreted in the feces.