Rhizobium attacks the root hairs of leguminous plants. This creates nodules in which the bacteria convert atmospheric nitrogen into ammonia using a process known as biological nitrogen fixation.