Calcium carbonate, also known as chalk or lime, is used in brewing to adjust the water profile, specifically to raise the pH and increase calcium levels, which are beneficial for dark beers and overall brewing processes. It's added to the mash to reduce acidity and improve the final beer's clarity, flavor, and stability.