Zunftordnung (guild laws) in 1336 by Rudolf Brun, who also became the first independent mayor, i.e. not assigned by the abbess. From this time, the city increasingly came under the domination of the Zünfte, a process only fully completed in the 16th century with the suspension of the monasteries following the Reformation. Jews were excluded from the guilds, which were based on the concept of Christian brotherhood. Under the new constitution (the main features of which lasted till 1798) the Little Council was made up of the burgomaster and thirteen members from the Constafel (which included the old patricians and the wealthiest burghers) and the thirteen masters of the craft guilds, each of the twenty-six holding office for six months. The Great Council of 200 (really 212) members consisted of the Little Council, plus 78 representatives each of the Constafel and of the guilds, besides 3 members named by the burgomaster. The office of burgomaster was created and given to Brun for life. Out of this change arose a quarrel with one of the branches of the Habsburg family, in consequence of which Brun was induced to throw in the lot of Zürich with the Swiss Confederation (May 1351). The double position of Zürich as a free imperial city and as a member of the Everlasting League was soon found to be embarrassing to both parties. In 1373 and again in 1393 the powers of the Constafel were limited and the majority in the executive secured to the craftsmen, who could then aspire to the burgomastership. Meanwhile, the town had been extending its rule far beyond its walls, a process which began in the 14th, and attained its height in the 15th century (1362–1467). Old Swiss Confederacy Zürich joined the Swiss confederation (which at that point was a loose confederation of de facto independent states) as the fifth member in 1351. Zürich was expelled from the confederation in 1440 due to a war with the other member states over the territory of Toggenburg (the Old Zürich War). Zürich was defeated in 1446, and re-admitted to the confederation in 1450. During the later half of the 15th century, Zürich managed to substantially increase the territory under its control, gaining the Thurgau (1460), Winterthur (1467), Stein am Rhein (1459/84) and Eglisau (1496). Zürich's position in the Confederacy was improved further with its role in the Burgundy Wars under Hans Waldmann. From 1468