Loredan's reign began during the disastrous second Ottoman–Venetian War, which he settled with a peace treaty in 1503 at the cost of considerable loss of territory. Later that year a dispute arose between Loredan and Pope Julius II, after Venice occupied territory in the northern Papal States. This escalated into the 1509 War of the League of Cambrai in which Venice was fighting an alliance of the Pope and France. Venice was defeated, but in 1513 Loredan formed a new alliance with the French King Louis XII against Pope Julius. This resulted in a decisive victory.