A walnut is a nut from a walnut tree.
It also refers to a type of wood from the same tree, sometimes used in construction.