During the period of partitions of Poland, which shifted the Russian borders some 300 miles west, several small Polish statelets such as the Duchy of Warsaw and the Congress Kingdom shared a border with the Russian Empire.