Despite their name and appearance, peanuts are not tree nuts like walnuts and pecans — they're part of the legume family of plants, which includes beans, lentils, peas and other familiar foods.