The border started to exist after the Battle of Saule on 22 September 1236 and then was later solidified after the Battle of Durbe on 13 July 1260. There were some disputes on the exact location of the border but these were settled. Later, for centuries, it was an approximate boundary between the Grand Duchy of Lithuania and Livonia. Following the Great Northern War and, separately, the partitions of the Polish-Lithuanian Commonwealth, the border became partially defunct when the territories were incorporation into the Russian Empire.