Pericarp

The pericarp is the outermost layer of a fruit that surrounds and protects the seeds. It is derived from the ovary wall of the flower and can be divided into three main layers: the exocarp, mesocarp, and endocarp. Each layer plays a different role in the development and function of the fruit.
The exocarp is the outermost layer of the pericarp and is often referred to as the skin of the fruit. It can vary in thickness and texture, depending on the type of fruit. Some fruits have a thin, delicate exocarp, while others have a tough, protective outer layer. The exocarp also contains pigments that give fruits their characteristic colors, such as the red of an apple or the orange of a pumpkin.
The mesocarp is the middle layer of the pericarp and is responsible for the fleshiness of the fruit. It can be soft and juicy, like in a peach or watermelon, or firm and fibrous, like in a coconut or avocado. The mesocarp is where most of the sugars, vitamins, and minerals are stored in the fruit, making it the most nutritious part to eat.
The endocarp is the innermost layer of the pericarp and is often hard and stony, protecting the seeds inside. Some fruits have a thin endocarp that is easily removed, while others have a thick, woody endocarp that must be cracked open to access the seeds. The endocarp can also contain toxic compounds that deter animals from eating the seeds, ensuring that they are dispersed and germinate successfully. Overall, the pericarp is essential for the survival and reproduction of plants, as it provides protection for the developing seeds and attracts animals to help disperse them.