Founded by crusading knights –probably the Brethren of the Sword, which is a real thing and not from a bad video game– Tallinn was taken over by the King of Denmark in 1219. In 1285 it became the northernmost member of the Hanse, an association of trading cities, and it prospered as the connection point between the Hanse and Russia. The oldest structures in the town date to around 1300, including the foundations of the wonderful walls. In this period it was known to non-Estonians as Reval. In 1346 the King of Denmark sold the city to the Teutonic Knights, which made little difference to the townspeople since they mostly governed themselves like other Germanic trading cities; now they paid their taxes to German-speaking knights instead of Danish royal officials. Documents recording the sale say the population of the town was 8,000.