German traders and crusaders came to Latvia at the end of the 12th century. Latvians lost control of their homeland. Over the next 800 years, Germans, Danes, Swedes, Poles, and Russians all invaded Latvia. Latvia finally became independent in 1918.