Trivulzio also took part in the victorious Battle of Agnadello against the Republic of Venice, and commanded contingents of the French army at Novara and (this time allied with the Venetians against the Swiss) Marignano. In 1516, he successfully defended Milan from the assault of Emperor Maximilian I.