The flag of Latvia was adopted on February 27, 1990. The flag was used by the independent state of Latvia from 1918 to 1940.