Bile is produced by the liver and stored in the gallbladder. Its primary function is to aid in the digestion and absorption of fats and fat-soluble vitamins in the small intestine.