The Saeima traces its origins to the Sejm of the Kingdom of Poland, which led to the creation of the Sejm (Seimas) of the Grand Duchy of Lithuania and later to the creation of the Sejm of the Polish–Lithuanian Commonwealth. Latvia, a part of the Polish–Lithuanian Commonwealth, was exposed to the Polish mode of administration and introduced to the Sejm-system. Most of Latvia, incorporated into 3 voivodeships: the Dorpat Voivodeship, the Parnawa Voivodeship and the Wenden Voivodeship, in total sent 6 senators to the Sejm of the Poland. However, the rest of Latvia belonged to the Duchy of Courland and Semigallia, which as a direct fief of the Commonwealth (therefore not a member of the Union with equal rights) was governed by the Sejm, but could not send its own senators to it.