1487, Giuliano was appointed legate in the March of Ancona and to the Republic of Venice. He encouraged trade with the sizable Turkish community at these ports. But urgent reports arrived from the King of Hungary that the Ottoman Sultan was threatening Italy. He returned on 8 April 1488, and again took up his residence in the Palazzo Colonna next to the Basilica of the XII Apostles. Conclave of 1492 In the Conclave of 1492, following the death of Innocent VIII, Cardinal della Rovere was supported for election by both King Charles VIII of France and by Charles' enemy King Ferrante of Naples. It was reported that France had deposited 200,000 ducats into a bank account to promote della Rovere's candidature, while the Republic of Genoa had deposited 100,000 ducats to the same end. Della Rovere, however, had enemies, both because of the influence he had exercised over Pope Sixtus IV and because of his French sympathies. His rivals included Cardinal Ardicio della Porta and Cardinal Ascanio Sforza, both patronized by the Milanese. Kellogg, Baynes & Smith, continue, a "rivalry had, however, gradually grown up between [della Rovere] and [then-Cardinal] Rodrigo Borgia, and on the death of Innocent VIII in 1492 Borgia by means of a secret agreement and simony with Ascanio Sforza succeeded in being elected by a large majority, under the name of Pope Alexander VI." Della Rovere, jealous and angry, hated Borgia for being elected over him. On 31 August 1492 the new Pope, Alexander VI, held a consistory in which he named six cardinal legates, one of whom was Giuliano della Rovere, who was appointed Legate in Avignon. Cardinal Giuliano was increasingly alarmed by the powerful position assumed by Cardinal Ascanio Sforza and the Milanese faction in the Court of Alexander VI, and after Christmas Day in December 1492 chose to withdraw to his fortress in the town and diocese of Ostia, at the mouth of the Tiber River. In that same month, Federico of Altamura, the second son of King Ferdinando (Ferrante) of Naples was in Rome to pay homage to the new pope, and he reported back to his father that Alexander and Cardinal Sforza were working on establishing new alliances, which would upset Ferrante's security arrangements. Ferrante, therefore, decided to use Della Rovere as the center of an anti-Sforza party at the papal court, a prospect made easier since Ferrante had prudently repaired