
Julius II made him Cardinal Bishop of Ostia, Porto, and Velletri on September 22, 1508. In 1507 he was promoted to the bishopric of Sabina, and on July 7, 1508, became Apostolic Administrator of Arezzo. On his return in September of 1503 he was appointed Bishop of Albano (in November, 1503) and was consecrated bishop on Apby Pope Julius II personally (another nephew of Sixtus IV). Riario fled to France and took up his bishopric of Tréguier. Alexander's son Cesare coveted the holdings of the Riario family, and seized the city of Forlì and also Imola. The greed for power and property on the part of the Borgia family made the Riarios a major target. Under Alexander VI, however, he was in disfavor. He was loaded with benefices by Sixtus IV and Innocent VIII (1484-1492), including the administration and income of sixteen rich bishoprics (including eventually Tréguier in France (1480-1483), Pisa (as Apostolic Administrator, 1479-1499), Salamanca (as Apostolic Administrator, 1482-1483), Osma (as Apostolic Administrator, 1483-1493), Cuença (as Apostolic Administrator, 1479-1482), Viterbo (as Apostolic Administrator, 1498-1506), and Savona (as Apostolic Administrator, 1511-1516) he was also Abbot of Monte Cassino and of Cava. He was named Chancellor of the Church, and in 1483 he became Camerlengo of the Holy Roman Church, a post he held until his death in 1521.

Although he was arrested and imprisoned, his uncle the Pope had him freed and brought to Rome, where he was officially rehabilitated in consistory.

He was suspected of having had some connection with the Pazzi conspiracy, April 1478, through his uncle Count Girolamo Riario and Francesco Salviati, Archbishop of Pisa.

On December 10, 1477, while engaged in the study of law at the University of Pisa, he was created Cardinal Deacon of San Giorgio in Velabro by his uncle Pope Sixtus (1471-1484). Raffaele Sansoni Galeotti Riario (May 3, 1461-July 9, 1521) was born at Savona, the son of Antonio Sansoni and of Pope Sixtus IV's sister Violentina.
