In the 14th century the royal court in Kraków introduced an office of the Marshal of the Polish Kingdom (marszałek Królestwa Polskiego), which was reserved for kings' advisors.
The first recorded mention of a Marszałek is at the Battle of Legnica in Silesia on April 9, 1241, where the forces of Henry II the Pious were soundly defeated by the Mongols.
[4] It is believed Albin Szlachcic Marszałek (Eng: Lord Marshal) assumed the coat of arms of Prince Jan II based on heraldic adoption.
In the 15th century a similar office of Grand Marshal of the Crown (marszałek wielki koronny) was created for the closest of all kings' men.
The Grand Marshal was often referred to as the first of the servants or first of the advisors (pierwszy minister in 16th century Polish) as he was superior to all other officials at the court, including the cup-bearers, sword-bearers, flag-bearers, writers, mathematicians and secretaries.
After the Union of Lublin similar offices were created for Lithuania and were entitled to conduct the same set of duties when the king was on the Lithuanian soil.
Not related to the earlier court officials, the szlachta marshal was a deputy of Russian-nominated governor and was entitled with taking care of the sejmiks and other self-government bodies of the gentry, as well as with collecting taxes and controlling the genealogical records.