Gallstones are pieces of solid material that form in the gallbladder. These stones develop because cholesterol and pigments in bile sometimes form hard particles. The two main types of gallstones are: 1  Cholesterol stones: Usually yellow-green in color, approximately 80% of gallstones are cholesterol stones.