A sejmik was one of various local parliaments in the history of Poland and history of Lithuania. The first sejmiks were regional assemblies in the Kingdom of Poland, though they gained significantly more influence in the later era of the Polish–Lithuanian Commonwealth. Sejmiks arose around the late 14th and early 15th centuries and existed until the end of the Commonwealth in 1795, following the partitions of the Commonwealth. In a limited form, some sejmiks existed in partitioned Poland (1795–1918), and later in the Second Polish Republic (1918–1939). In modern Poland, since 1999, the term has revived with the voivodeship sejmiks, referring to the elected councils of each of the 16 voivodeships.