Lithuania has a long history dating back to 1009. It established itself as a kingdom in the 13th century and later formed a powerful union with Poland. However, Lithuania was later partitioned and ruled by the Russian Empire for several centuries. Gediminas Castle was founded in the 13th century by Grand Duke Gediminas according to a prophetic dream. Trakai Castle was constructed in the 14th century by Grand Duke Kęstutis. In 1989, over 2 million people formed a 600km human chain across Estonia, Latvia and Lithuania known as the Baltic Way to protest the Soviet occupation and demonstrate solidarity for independence.