For about a century (from 1416 until 1509) Rovereto belonged to the Serenissima. The "Palazzo Pretorio", or "Palazzo Podestà", was the abode of the "podestà". The palace is typically Venetian, and was built by Andrea Valier, Rovereto's first "podestà", upon the Venetians' arrival in 1416. While the city was under Venetian sway for almost a century, today the "Palazzo dei Podestà" and the are the only vestiges of Venetian rule. With the conclusion of the war against Venice conducted by the League of Cambrai and the Venetian defeat at the Battle of Agnadello, Rovereto was occupied by Imperial troops. Maximilian I confirmed the privileges and the statutes to the "fedeli consoli e cittadini e alla comunità della città di Rovereto" ("loyal consuls and citizens and the community of Rovereto"), thus confirming Rovereto's rank of city.