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.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.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.