the wall of a fruit that encloses the seeds and which develops from the ovary wall, often with three distinct layers: outer exocarp; middle mesocarp; and inner endocarp.