Historically, countries used flags during wartime to distinguish between allies and enemies, and as time has passed, this role has continued to be prominent. Often, young nations work on drafting their flags as they begin fighting for their independence because this allows them to stand out.