The Legion is the ultimate infantry unit. The Legion has many more hit points and more attack strength than the Long Swordsman. You must research Fanaticism before you can upgrade to Legion.
Researching Toolworking, Metalworking, and Metallurgy increases attack strength. Leather Armor, Scale Armor, and Chain Mail increase armor. The Bronze Shield and Iron Shield increase piercing armor.