Giuliano Della Rovere thenceforth took the name of his fourth-century predecessor, Julius I, and was pope for nine years, from 1503 to 1513. From the beginning, Julius II set out to defeat the various powers that challenged his temporal authority; in a series of complicated stratagems, he first succeeded in rendering it impossible for the Borgias to retain their power over the Papal States. Indeed, on the day of his election, he declared: Others indicate that his decision was taken on 26 November 1507, not in 1503. The Borgia Apartments were turned to other uses. The "Sala de Papi" was redecorated by two pupils of Raphael by order of Pope Leo X. The rooms were used to accommodate Emperor Charles V on his visit to the Vatican after the Sack of Rome (1527), and subsequently, they became the residence of the Cardinal-nephew and then the Secretary of State.