The odour of feces is caused by the chemicals indole, skatole, hydrogen sulfide, and mercaptans, which are produced by bacterial action.