The gallbladder’s primary function is to store bile, which is produced in the liver and helps break down fats in the body. People can function without a gallbladder if the organ needs to be removed. The body copes by filling bile ducts, which transport bile to the small intestine, and using them to store excess bile.