The Lithuanian nobility or Lithuanian szlachta (bajorija, šlėkta, szlachta litewska) was historically a legally privileged hereditary elite class in the Kingdom of Lithuania and Grand Duchy of Lithuania (including during period of foreign rule 1795–1918) consisting of Lithuanians from Lithuania Proper; Samogitians from Duchy of Samogitia; following Lithuania's eastward expansion into what is now Belarus, Ukraine and Russia, many ethnically Ruthenian noble families (boyars); and, later on, predominantly Baltic German families from the Duchy of Livonia and Inflanty Voivodeship. It traced its origins via Palemonids to Polemon II of Pontus. Families of the nobility were responsible for military mobilization and enjoyed Golden Liberty; some were rewarded with additional privileges for success on the battlefield. In the Grand Duchy of Lithuania, ducal titles were mostly inherited by descendants of old dynasties while the relatively few hereditary noble titles in the Kingdom of Poland were bestowed by foreign monarchs. The Polish–Lithuanian Commonwealth had one of the largest percentages of nobility in Europe, with szlachta (nobility) constituting close to 10% of the population, but in some constituent regions, like Duchy of Samogitia, it was closer to 12%. However, the high nobility was extremely limited in number, consisting of the magnates and later, within the Russian Empire, of princes. Lithuanian nobility is not formally recognized by the Republic of Lithuania and does not carry special status, but the Lithuanian Royal Union of Nobility (founded 1928, closed in 1940, reestablished in 1994) unites in excess of 4,000 members from 600 families. Prior to the baptism (and quick repudiation) by Mindaugas, lesser members of the nobility were called bajorai (singular - bajoras) and greater nobles, kunigai (singular - kunigas), related to the Old kunig, meaning "king", or kunigaikštis, usually translated as duke, dux. These positions evolved from tribal leaders and were chiefly responsible for waging wars and organizing raids operations into enemy territories.