The fleshy or dry ripened ovary of a plant, enclosing the seed or seeds.