Tallinn is one of the oldest capitals in Northern Europe, established in 1219 by the Danish king. The medieval Hanseatic city has preserved its unique architecture and street network. Tallinn has been under Danish, Teutonic Order, Swedish, and Russian rule, becoming Estonia's capital in 1918.