A settlement called Tarvanpea was first mentioned in the Chronicle of Henry of Livonia in 1226. The new Danish stronghold was called Wesenbergh in Middle Low German for the first time in 1252. The battle of Wesenberg between the Danish and German knights and Russians occurred nearby on 18 February 1268.