Pearls are formed within mollusks when an irritant, such as a parasite or a piece of shell, enters the shell. The mollusk secretes layers of nacre (mother- of-pearl) around the irritant as a defense mechanism. Nacre is composed primarily of microscopic crystals of calcium carbonate (CaCO3), mainly in the aragonite form, cemented together by an organic protein matrix called conchiolin.