After establishing the Ming Dynasty, Zhu Yuanzhang began to consolidate the authority of the royal court. He assigned territories to the members of the royal family and stationed them across the empire. These members of the royal family did not have the administrative power over their territory, but they were entitled to a personal army that ranges from 3,000 to 19,000 men. Royal members that were stationed in the northern frontier were entitled to even larger forces. For instance, the Prince of Ning was said to have an army of over 80,000 men. The original crown prince Zhu Biao died at 36 in 1392, and his son Zhu Yunwen was made the crown prince. Zhu Yunwen was the nephew of the territorial princes, and he felt threatened by their military power. In May 1398, Zhu Yunwen ascended to the throne and became the Jianwen Emperor after the death of Zhu Yuanzhang. The princes were ordered to stay in their respective territories as the new emperor began planning for the reduction of their military power with his close associates Qi Tai and Huang Zicheng.

How many years was Zhu Yunwen a crown prince?
A: 6

After long negotiations the territorial changes resulting from the conflict were firmly established at the Treaty of Quedlinburg  of 13 May 1523. The main import of these changes were significant gains for the princes of Brunswick-Wolfenbüttel, whilst the Prince-Bishopric of Hildesheim was left with just 4 of its original 22 districts  as well as the towns of Hildesheim and Peine, the so-called Kleines Stift  of some 90 villages. The ecclesiastical boundary of the diocese remained unchanged. The Principality of Brunswick-Wolfenbüttel was awarded the Ämter of Winzenburg, Wohldenberg, Steinbrück, Lutter, Wohlenstein, Schladen, Liebenburg, Wiedelah, Vienenburg and Westerhof with the abbeys of Lamspringe, Heiningen, Dorstadt, Wöltingerode, Ringelheim and Riechenberg, as well as the towns of Alfeld, Bockenem, Lamspringe and Salzgitter. The Principality of Calenberg received the houses, i.e.fortified seats, and Ämter of Hunnesrück with Markoldendorf, Aerzen, Lauenstein, Grohnde, Hallerburg, Poppenburg, Ruthe and Coldingen, the towns of Dassel, Bodenwerder, Gronau, Elze, Sarstedt, half of  Hameln and the abbeys of Marienau, Escherde, Wittenburg, Wülfinghausen and Derneburg. Hildesheim immediately began a legal fight for the return of its Großes Stift . This finally ended in 1643 in the Main Treaty of Hildesheim  with a revision of the Treaty of Quedlinburg and return of most of the territories. Exceptions were the Ämter of Aerzen, Grohnde, Coldingen-Lauenberg, Lutter am Barenberge, Westerhof and Lindau, which remained with the principalities of Calenberg and Brunswick-Wolfenbüttel. Prince-bishop John IV gave up the prince-bishopric in 1527 and later became canon of Ratzeburg and died in 1547 in Lübeck.

What treaty was signed second: Treaty of Quedlinburg or Main Treaty of Hildesheim?
A: Main Treaty of Hildesheim

In 1592 Hugh Roe O'Donnell had driven an English sheriff, Captain Willis, out of his territory, Tir Chónaill . In 1593, Maguire supported by Troops out of Tyrone led by Hugh O'Neill's brother, Cormac MacBaron, had combined to resist Willis' introduction as Sheriff into Maguire's Fermanagh. After Willis was expelled from Fermanagh Maguire with the aid of MacBaron launched a punishing raids into northern Connacht, burning villages around Ballymote castle. . Maguire launched a more ambitious raids into Connacht during June, when he clashed with forces led by the governor of Connacht, Sir Richard Bingham, but the English were beaten back and Maguire continued to spoil thorough Roscommon before returning north. Initially O'Neill assisted the English, hoping to be named as Lord President of Ulster himself. Elizabeth I, though, had feared that O'Neill had no intention of being a simple landlord and that his ambition was to usurp her authority and be "a Prince of Ulster". For this reason she refused to grant O'Neill provincial presidency or any other position which would have given him authority to govern Ulster on the crown's behalf. Once it became clear that Henry Bagenal was marked to assume the presidency of Ulster, O'Neill accepted that an English offensive was inevitable, and so joined his allies in open rebellion in February 1595, with an attack on the English fort on the River Blackwater. Later in 1595 O'Neill and O'Donnell wrote to King Philip II of Spain for help, and offered to be his vassals. He also proposed that his cousin Archduke Albert be made Prince of Ireland, but nothing came of this. Philip II replied encouraging them in January 1596. An unsuccessful armada sailed in 1596; the war in Ireland became a part of the wider Anglo-Spanish War.

What happened first, attack on an English fort or O'Neill asked King Philip II for help?
A:
attack on an English fort