Groundnut commonly known as the peanut, is a self-pollinating, annual herbaceous legume cultivated primarily for its edible oilseeds. Despite its name, it is botanically classified as a legume, closely related to beans and lentils rather than true tree nuts.