Chemical oceanography

Why is carbonate-ion concentration relevant to calcium carbonate shell and skeleton formation?