Its function is to aid in the digestion of fats in the duodenum. Bile is composed of bile acids and salts, phospholipids, cholesterol, pigments, water, and electrolyte chemicals that keep the total solution slightly alkaline (with a pH of about 7 to 8).