but a dispute arose over territory. Emperor Maximilian refused to surrender any Imperial territory, which in his eyes included most of the Veneto, to the Republic; to this end, he signed an agreement with the Pope to exclude Venice entirely from the final partition. When the Republic objected, Julius threatened to reform the League of Cambrai. In response, Venice turned to Louis; on 23 March 1513, a treaty pledging to divide all of northern Italy between France and the Republic was signed at Blois. Under this alliance with the French King Louis XII, the Venetians achieved a decisive victory over the Papal States, and were able to secure back all the territories they had lost. In addition, the Papacy was forced to repay many outstanding debts to the Loredan family totaling approximately 500,000 ducats, an enormous sum of money. The end of the war and the behavior of the doge, who perhaps thought he should enjoy the last years of his life rather than dedicate them to the administration of the state, led to a certain frivolity in Venetian society. Financial scandals were the order of the day and many public offices were bought at disproportionate prices rather than obtained on merit. In this period the doge bought titles and offices for children and relatives, making the most of his influence. Despite Loredan's wishes, he could not lead this pleasant life for long as he began to suffer from health problems. Around the first days of June 1521 his health began to deteriorate and soon gangrene developed in his leg. Any intervention was useless and the gangrene spread, killing him in the night between 20 and 21 June. It is said that, to warn the councilors and regents of the state, the news of his death was silenced by the doge's own son and was communicated only in the late morning. Interestingly, the commercialism and non-exemplary behaviour of his final years did not escape the watchful eye of the Inquisitors of the Dead, a magistracy created after the death of Francesco Foscari, charged with investigating the final "account" of the doge. Perhaps the trial was artfully mounted for political purposes but certainly there were incriminating motives, because the heirs of the doge, despite being defended by the lawyer Carlo Contarini, one of the best of the time, were sentenced to a hefty fine of 9,500 ducats. Death Doge Loredan's health