Ensign (/ˈɛnsən/ late 14c., via Scottish, from Old French enseigne (12c.) "mark, symbol, signal; flag, standard, pennant", from Latin insignia (plural)) is a junior rank of a commissioned officer in the armed forces of some countries, normally in the infantry or navy. As the junior officer in an infantry regiment was traditionally the carrier of the ensign flag, the rank acquired the name. This rank has generally been replaced in army ranks by second lieutenant. Ensigns were generally the lowest ranking commissioned officer, except where the rank of subaltern existed. In contrast, the Arab rank of ensign, لواء, liwa', derives from the command of units with an ensign, not the carrier of such a unit's ensign, and is today the equivalent of a major general.
In Thomas Venn's 1672 Military and Maritime Discipline in Three Books, the duties of ensigns are to include not only carrying the colour but assisting the captain and lieutenant of a company and in their absence, have their authority.
"Ensign" is enseigne in French, and chorąży in Polish, each of which derives from a term for a flag. The Spanish alférez and Portuguese alferes is a junior officer rank below lieutenant associated with carrying the flag, and so is often translated as "ensign". Unlike the rank in other languages, its etymology has nothing to do with flags, but instead comes from the Arabic for "cavalier" or "knight". Fähnrich in German comes from an older German military title, Fahnenträger (flag bearer); however, it is an officer cadet rank, not a junior officer - the same applies to the Dutch Vaandrig, which has a parallel etymology. In the German Landsknecht armies (c. 1480), the equivalent rank of a Cornet existed for those men who carried the troop standard (known as a "cornet"). It is still used in the artillery and cavalry divisions of the Netherlands (Kornet).