Oysters make pearls in response to an irritant, such as a grain of sand or another object. When any irritant makes its way between the mollusk's shell and mantle, the creature produces nacre, a protective coating that helps reduce irritation.