Leguminous plants have root nodules that contain nitrogen fixing bacteria. A symbiotic relationship between the plant and rhizobium gives rise to these. These bacteria convert atmospheric nitrogen into forms that are usable by the plants such as ammonia. They restore the lost nitrogen content of the soil.