In 1507, Julius returned to the question of the cities in Venetian hands; once again rebuffed by the Senate, he encouraged Emperor Maximilian I to attack the Republic. Maximilian, using his journey to Rome for the Imperial coronation as a pretext, entered Venetian territory with a large army in February 1508 and advanced on Vicenza, but was defeated by a Venetian army under Bartolomeo d'Alviano. A second assault by a Tyrolean force several weeks later was an even greater failure; Alviano not only routed the Imperial army but also seized the entire County of Gorizia, Austrian Istria (Merania and the county of Pazin), as well as Trieste, Fiume, and the westernmost portions of Inner Carniola, forcing Maximilian to conclude a truce with Venice.