Cholesterol gallstones are formed mainly due to over secretion of cholesterol by liver cells and hypomotility or impaired emptying of the gallbladder. In pigmented gallstones, conditions with high heme turnover, bilirubin may be present in bile at higher than normal concentrations. Bilirubin may then crystallize and eventually form stones.