Their roots form small lumps (nodules) where bacteria from the rhizobia group live, converting nitrogen from the air into a form the plant can use. If you pull up a broad bean plant and see little pinkish balls on the roots, they are at work.
That is why they are used in crop rotation and as green manure: they leave the soil somewhat richer in nitrogen for the next crop, especially if the roots and plant remains are dug in. Legumes include beans, peas, broad beans, chickpeas, lentils, vetch, clover and alfalfa (lucerne).

