How it works Try a lens The library Explore Get started FAQ Download on the App Store →

EXPLAINERS

Why do countries have flags?

Countries have flags because armies and ships needed a way to identify friend from foe at a distance, long before nations existed in their modern form. That practical signal became a legal symbol of the state itself, and today a flag is one of the few objects that can represent an entire country in a single glance.

Flags as a solution to a battlefield and a harbor problem

The study of flags is called vexillology, and its earliest chapters are practical rather than patriotic. On a smoke-filled medieval battlefield, or on the deck of a ship approaching a foreign port, there was no reliable way to identify who someone was at a distance until a distinctive piece of cloth on a pole did the job. Naval ensigns let a ship declare its nationality to another vessel or a coastal fort long before radio existed, and a regiment's banner let soldiers regroup around a fixed point when the battle lines broke down. Both uses long predate the modern nation-state: they were tools of specific rulers, armies, and trading fleets, not yet symbols of a country whose citizens might never see a battlefield or a ship.

The oldest surviving national flag design still in use is generally credited to Denmark. According to a 16th-century legend, the Dannebrog, a white cross on a red field, fell from the sky during a Danish battle in Estonia in 1219, inspiring a victory that felt otherwise unlikely. Historians treat the legend itself as unverifiable, and the flag's design is documented in royal use from at least the 14th century, but Denmark's own flag authorities date unbroken official use of the Dannebrog to 1625, a claim recognized by Guinness World Records as the oldest continuously used national flag in the world.

What a flag does today

A modern national flag still does the identification job it always did, just in more settings. At sea, ships still fly a national ensign, and maritime law treats a vessel's flag as a declaration of the jurisdiction whose laws it operates under. On land, a flag marks government buildings, embassies, and border posts as sovereign territory, and it is often written into a country's constitution or a specific flag law, which sets out its exact colors, proportions, and correct handling. A flag draped over a coffin, raised at a stadium, or lowered to half-mast are all uses of the same object to do something words do a much slower job of: signal that a person, a team, or a moment belongs to a particular country, instantly and without translation.

What makes a flag design work

The North American Vexillological Association, the largest flag studies association in the world, published a short guide called Good Flag, Bad Flag that boils good flag design down to five principles: keep it simple, so simple that a child can draw it from memory, use meaningful symbolism, meaning images and colors that relate to what the flag stands for, use two or three basic colors that contrast well, never use lettering of any kind or an organization's seal, since a flag has to work at a distance and in silhouette, and be distinctive or be related, meaning a flag should either avoid duplicating its neighbors or use similarity deliberately to show a connection, meaning a flag should either stand apart from its neighbors or deliberately echo a shared family it belongs to. Flags that violate these rules, often by cramming in a coat of arms or too many colors, are frequently ranked poorly in vexillologist surveys and are hard for anyone but a specialist to reliably redraw.

Families of flags

Once one country in a region adopts a strong design, neighbors and allies often borrow its visual language on purpose, to signal shared history or solidarity. The clearest example is the Nordic cross, an offset cross reaching all four edges of the flag, used not only by Denmark but by Sweden, Norway, Finland, Iceland, and the Faroe Islands. Pan-Arab colors, red, white, black, and green, appear across much of the Arab world, tracing back to the 1916 Arab Revolt flag and adopted since by Jordan, Iraq, Kuwait, the United Arab Emirates, and others. Pan-African colors come in two sets: the red, black, and green of Marcus Garvey's UNIA flag of 1920, which appears on Kenya's and Malawi's flags, and the green, yellow, and red taken from Ethiopia's flag, which Ghana, Guinea, Mali, Senegal, and Togo adopted at independence. Pan-Slavic colors, blue, white, and red, were codified at the 1848 Prague Slavic Congress and drew on the Russian flag, and they tie together Slovakia, Slovenia, Serbia, Croatia, and Czechia among others.

FamilyShared elementExample countries
Nordic crossAn offset cross reaching all four edgesDenmark, Sweden, Norway, Finland, Iceland
Pan-Arab colorsRed, white, black, and greenJordan, Iraq, Kuwait, United Arab Emirates
Pan-African colorsRed, black, and green (Garvey), or green, yellow, and red (Ethiopian)Kenya, Malawi; Ghana, Guinea, Mali, Senegal, Togo
Pan-Slavic colorsBlue, white, and redSlovakia, Slovenia, Serbia, Croatia

Quick facts

  • Denmark's Dannebrog is widely credited as the oldest continuously used national flag, per Guinness World Records, dating official continuous use to 1625.
  • The study of flags is called vexillology.
  • NAVA's Good Flag, Bad Flag sets out five principles: keep it simple, use meaningful symbolism, use two or three basic colors, no lettering or seals, and be distinctive or be related.
  • Flag families like the Nordic cross and pan-Arab colors let neighboring countries signal shared history through design.

Common questions

Why do countries have flags?
Flags began as practical signals so ships and armies could identify allies and enemies at a distance. Over centuries that signal became a legal symbol of the state itself, and today a flag represents a country's sovereignty, history, and identity in a single object.
What is the oldest national flag still in use?
Denmark's Dannebrog, a white cross on a red field, is widely credited as the oldest continuously used national flag. Guinness World Records dates its unbroken official use to 1625, though the flag's design is documented from at least the 14th century and a legend traces its origin to 1219.
What are the rules for a good flag design?
The North American Vexillological Association's Good Flag, Bad Flag lists five principles: keep it simple, use meaningful symbolism, use two or three basic colors, never use lettering or seals, and be distinctive or be related to a family of similar flags.
Why do so many flags use the same colors?
Neighboring or allied countries often deliberately echo a shared design tradition. The Nordic cross links Denmark, Sweden, Norway, Finland, and Iceland; pan-Arab red, white, black, and green trace to the 1916 Arab Revolt flag; and pan-African colors come in two sets, Marcus Garvey's red, black, and green and Ethiopia's green, yellow, and red.
What is vexillology?
Vexillology is the study of flags, their history, symbolism, and design. It covers national flags as well as regional, organizational, and historical flags, and vexillologists have organized bodies like NAVA that publish guidance on flag design and preservation.

Keep exploring