It reacts by coating the irritant with layers of nacre, which eventually builds up and forms into a pearl. Unlike imitation pearls which contain glass or plastic, the base of shell pearls is nacre. The pearl is made using a bead of mother-of-pearl.
eBay