A pyrena or pyrene, commonly called a pit or stone, is the fruitstone inside certain types of fruit, namely drupes or drupelets, and consists of a hardened shell-like layer surrounding one or more seeds. It is produced by the hardening of the inner lining tissue of the fruit, called the endocarp. This hardened structure provides a protective physical barrier around the seed, shielding it from pathogens and herbivory.