the custody of the Iron Crown. In 1387 a quarrel between Frederick, Duke of Bavaria, and the cities of the Swabian League allied with the Archbishop of Salzburg gave the signal for a general war in Swabia, in which the cities, weakened by their isolation, mutual jealousies and internal conflicts, were defeated by the forces of Eberhard II, Count of Württemberg, at Döffingen, near Grafenau, on 24 August 1388. The cities were taken severally and devastated. Most of them quietly acquiesced when King Wenceslaus proclaimed an ambivalent arrangement at Cheb (Eger) in 1389 that prohibited all leagues between cities, while confirming their political autonomy. This settlement provided a modicum of stability for the next several decades, however the cities dropped out as a basis of the central Imperial authority. King of Bohemia During his long reign, Wenceslaus held a tenuous grip on power at best, as he came into repeated conflicts with the Bohemian nobility led by the House of Rosenberg. On two occasions he was even imprisoned for lengthy spells by rebellious nobles. But the greatest liability for Wenceslaus proved to be his own family. Charles IV had divided his holdings among his sons and other relatives. Although Wenceslaus upon his father's death retained Bohemia, his younger half-brother Sigismund inherited Brandenburg, while John received the newly established Duchy of Görlitz in Upper Lusatia. The March of Moravia was divided between his cousins Jobst and Procopius, and his uncle Wenceslaus I had already been made Duke of Luxembourg. Hence the young king was left without the resources his father had enjoyed, although he inherited the duchy of Luxembourg from his uncle in 1383. In 1386, Sigismund became king of Hungary and became involved in affairs further east. Wenceslaus also faced serious opposition from the Bohemian nobles and even from his chancellor, the Prague archbishop Jan of Jenštejn. In a conflict surrounding the investiture of the abbot of Kladruby, the torture and murder of the archbishop's vicar-general John of Nepomuk by royal officials in 1393 sparked a noble rebellion. In 1394 Wenceslaus' cousin Jobst of Moravia was named regent, while Wenceslaus was arrested at Králův Dvůr. King Sigismund of Hungary arranged a truce in 1396, and for his efforts he was recognized as heir to Wenceslaus. In the Papal Schism, Wenceslaus had supported the Roman Pope Urban VI. As Bohemian king he sought to protect the religious reformer Jan Hus and