signed in 1271. The city was captured by the Hungarian nobleman and palatine Nicolaus von Güssing in 1285–1286, who (temporarily) burned down the castle in 1286, but his revolt against the king was defeated. In 1287–1291 the city was captured by the Austrian duke Albert of Habsburg. Albert was defeated by the Hungarian nobleman Matthew III Csák of Trenčín, who was the leader of Pozsony and Trenčín counties at that time and Pozsony belonged to Hungary again. The town (the part below the castle) was conferred its first (known) town privileges by the Hungarian king Andrew III in 1291. Earlier town privileges are not known, but probable, because Pressburg has been called a "town" as early as around 1250. After 1291, the town received many privileges from Hungarian kings, especially from the emperor Sigismund in the 15th century. After the death of the Hungarian king Andrew III, Pressburg was annexed by Austria in 1301, because Andrew's widow gave the town to the Habsburgs. The Habsburgs returned it to Hungary in 1322, but occupied it again later. It is only in 1338 that the town finally became part of Hungary again. In 1405 the town was declared a free royal town by King Sigismund of Luxemburg. Not only Pressburg but all towns in Hungary got this status (meaning that they received "collective nobility", i.e. the status of a feudal lord with all its privileges) because Sigismund wanted to restrain the increasing power of the (true) feudal lords in Hungary. The Hussites first appeared in 1428, when they burned down the suburbs of Pressburg. Negotiations held a year later in Pressburg between Sigismund of Luxemburg and the Hussites (in April and in June) failed. Between 1432 and 1434 the Hussites tried to conquer the city but their attacks failed. The first bridge over the Danube in Pressburg was built in 1434, but it was destroyed by floods next year. In 1434 and 1435 the amount of paymentsby Hungary, for which the Hussites would leave Slovakia, was officially negotiated. In 1436 Sigismund of Luxemburg awarded Pressburg the right to use its own coat of arms and orders to improve the fortification of the castle (because of the last Hussite invasion during that year). From 1439 to 1486 another bridge over the Danube existed in Pozsony, being washed away by flood in 1486. Between 1440 and 1443 there was fighting between the castle of