Gallstones form when bile stored in the gallbladder hardens into stone-like material. Too much cholesterol, bile salts, or bilirubin (bile pigment) can cause gallstones. When gallstones are present in the gallbladder itself, it is called cholelithiasis.