 The division of the nobility into two main layers was institutionalized, but never legally formalized, in the "Nihil novi" "constitution" of 1505, which required the king to consult the general sejm, that is the Senate, as well as the lower chamber of (regional) deputies, the Sejm proper, before enacting any changes.The masses of ordinary nobles szlachta competed or tried to compete against the uppermost rank of their class, the magnates, for the duration of Poland's independent existence.The first king of the new dynasty was Jogaila, the Grand Duke of Lithuania, who was known as Władysław II Jagiełło in Poland.