 Lithuanian state dates to the 13th century, and it first established a border with Polish territories around the 14th century, after the destruction of the Old Prussian and Yotvingians tribes.Until that time most of contact between the two countries was limited to border military conflicts, such as Lithuanian raid on Duchy of Masovia in 1262, which killed Siemowit I of Masovia.This changed with a mid-1320s alliance between king of Poland, Władysław Łokietek, and Grand Duke of Lithuania, Gediminas.