When a tiny parasite enters an oyster's shell, mantle cells cover it with nacre until this is formed
... forms 
a pearl sac of external mantle tissue cells and secretes the calcium carbonate 
and ... and a yellowish to white outer zone consisting of nacre (tabular aragonite).