At the end of the 15th century, Pope Alexander VI Borgia (r. 1492-1503), whose power was at the time contested by several the noble Roman families and by French king Charles VIII (who in 1494 had occupied the city, while the pope remained barricaded in the Castel Sant'Angelo), decided to restructure the citadel of Borgo and the castle.