Legumes form symbiotic relationship with bacteria, rhizobium in the nodules of their roots to manufacture nitrogen compounds, which in turn serve as protein in the legumes, and seed being part of their storage form.