In botany, a nut is a type of fruit produced by a tree or shrub. It consists of a hard or tough outer shell that protects an edible kernel inside. The shell is indehiscent, meaning it does not open to release the seed. While most seeds come from fruits that naturally shed their shells, nuts such as hazelnuts, chestnuts, and acorns have hard shell walls and develop from a compound ovary.