 Since 1569, when it was ceded by the Grand Duchy of Lithuania, during the era of the Polish–Lithuanian Commonwealth, the territory belonged to the Podlaskie Voivodeship and was part of the Kingdom of Poland.However, Sejny was a property of Dominican friars from Vilnius.During the 19th century, the town was part of the Russian-controlled Congress Poland.