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. Among his responsibilities were command over the court during kings' travels, obedience of court etiquette and starting and closing the Senate meetings. In addition, when away from the Royal Castle, King entitled the marszałek to enforce the so-called marshal articles, or a set of rules limiting the freedom of the szlachta in the presence of the monarch and regulating the order of meetings in order to ensure kings' safety. Initially traditional law, the set of rules was finally accepted by the Sejm in 1678. The Grand marshal's deputy was named marszałek nadworny (marshal of the court), who was taking care for the court and the safety of the dames. 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. In addition, a separate office of land marshal of Lithuania (marszałek ziemski litewski) was created. Finally, in the 17th century an office of marszałek dworski (court marshal, not to be confused with marshal of the court) was created. The latter official was the manager of kings' private property. In addition to the court officials, the term marszałek was also used to denote a number of lower-ranking or temporary officials. Out of those the most prominent were marshals of the Sejm (Polish parliament) (marszałek sejmu) and Sejmiks (regional parliaments). In 1772, after the First Partition of Poland, in the Russian-occupied part of the Polish–Lithuanian Commonwealth an office of the marszałek szlachty (Marshal of Nobility) was created. 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. The Collection of Laws of the Russian Empire of 1842 introduced two sets of such officials: one for gubernyal level of administration and the other for powiat-level. Initially elected by the gentry, after the January Uprising of 1863 the marshals were usually nominated by the governor. Their influence soon diminished and the office was abolished, together with the traditional Polish system of administrative division onto voivodships, lands and powiats.