The small enlargement or swelling on roots of legumes produced as a result of infection by nitrogen-fixing bacteria.