The national flag of Latvia was used by independent Latvia from 1918 until the country was occupied by the Soviet Union in 1940. Its use was suppressed during Soviet rule. ... Though officially adopted in 1923, the Latvian flag was in use as early as the 13th century.