We reveal that hepatic OPN contributes to cholesterol gallstone formation by regulating biliary metabolism in mice. Here, SPP1 is linked to gallstones.