paragraph_text: On 25 January 1494, Ferdinand I died and was succeeded by his son Alfonso II (1494–1495). Charles VIII of France now advanced formal claims on the Kingdom of Naples. Alexander authorised him to pass through Rome, ostensibly on a crusade against the Ottoman Empire, without mentioning Naples. But when the French invasion became a reality Pope Alexander VI became alarmed, recognised Alfonso II as king of Naples, and concluded an alliance with him in exchange for various fiefs for his sons (July 1494). A military response to the French threat was set in motion: a Neapolitan army was to advance through the Romagna and attack Milan, while the fleet was to seize Genoa. Both expeditions were badly conducted and failed, and on 8 September Charles VIII crossed the Alps and joined Ludovico il Moro at Milan. The Papal States were in turmoil, and the powerful Colonna faction seized Ostia in the name of France. Charles VIII rapidly advanced southward, and after a short stay in Florence, set out for Rome (November 1494).

paragraph_text: A member of the Orsini family, Franciotto Orsini was born in Rome in 1473, the son of Orso Orsini di Monteredondo and Costanza Savelli.Biography from the Biographical Dictionary of the Cardinals of the Holy Roman Church He was a nephew of Pope Leo X on his father's side. Orsini was educated in Florence by Lorenzo de' Medici.

paragraph_text: Avignon was the seat of the papacy from 1309 to 1376. With the return of the Pope to Rome in 1378, the Papal State developed into a major secular power, culminating in the morally corrupt papacy of Alexander VI. Florence grew to prominence amongst the Italian city-states through financial business, and the dominant Medici family became important promoters of the Renaissance through their patronage of the arts. Other city states in northern Italy also expanded their territories and consolidated their power, primarily Milan and Venice. The War of the Sicilian Vespers had by the early 14th century divided southern Italy into an Aragon Kingdom of Sicily and an Anjou Kingdom of Naples. In 1442, the two kingdoms were effectively united under Aragonese control.

paragraph_text: Sancha of Aragon (1478 in Gaeta – 1506 in Naples), or Sancia of Aragon, was an illegitimate daughter of King Alfonso II of Naples and his mistress Trogia Gazzela. In 1494, she was married to Gioffre Borgia, youngest son of Pope Alexander VI. Upon her marriage, she and her husband were created Prince and Princess of Squillace, a province in the south of Italy. For the majority of their marriage, Sancha and her husband lived in the Vatican with the rest of his family. There Sancha became friends with her sister-in-law Lucrezia, and allegedly had affairs with both of her husband's older brothers: Juan Borgia, 2nd Duke of Gandia, also known as Giovanni Borgia, and Cesare Borgia. Her affair with Juan is sometimes said to be the reason for Cesare's alleged murder of Juan in 1497.

paragraph_text: Pope Leo X (11 December 1475 – 1 December 1521), born Giovanni di Lorenzo de' Medici, was Pope from 9 March 1513 to his death in 1521.

paragraph_text: The French crown's increasing dominance over the Papacy culminated in the transference of the Holy See to Avignon in 1309. When the Pope returned to Rome in 1377, this led to the election of different popes in Avignon and Rome, resulting in the Papal Schism (1378–1417). The Schism divided Europe along political lines; while France, her ally Scotland and the Spanish kingdoms supported the Avignon Papacy, France's enemy England stood behind the Pope in Rome, together with Portugal, Scandinavia and most of the German princes.

paragraph_text: During the tumultuous 14th century, disputes within the leadership of the Church led to the Avignon Papacy of 1305–78, also called the "Babylonian Captivity of the Papacy" (a reference to the Babylonian captivity of the Jews), and then to the Great Schism, lasting from 1378 to 1418, when there were two and later three rival popes, each supported by several states. Ecclesiastical officials convened at the Council of Constance in 1414, and in the following year the council deposed one of the rival popes, leaving only two claimants. Further depositions followed, and in November 1417 the council elected Martin V (pope 1417–31) as pope.

paragraph_text: Matteo Rosso Orsini (1178–1246), called the Great, was an Italian politician, the father of Pope Nicholas III. He was named "senatore" of the City of Rome by Pope Gregory IX in 1241: in this capacity he took a firm stand against the ventures in Italy of Frederick II, Holy Roman Emperor, and defeated him in 1243.

paragraph_text: Clement V declined to move to Rome, remaining in France, and in 1309, he moved his court to the papal enclave at Avignon, where it remained for the next 67 years. The absence from Rome is sometimes referred to as the ``Babylonian Captivity of the Papacy ''. A total of seven popes reigned at Avignon; all were French, and they increasingly fell under the influence of the French Crown. On September 13, 1376, Gregory XI abandoned Avignon and moved his court to Rome (arriving on January 17, 1377), ending the Avignon Papacy.

paragraph_text: Pope Francis (Latin: Franciscus; Italian: Francesco; Spanish: Francisco; born Jorge Mario Bergoglio; 17 December 1936) is the 266th and current Pope and sovereign of the Vatican City State. Francis is the first Jesuit pope, the first from the Americas, the first from the Southern Hemisphere, and the first pope from outside Europe since the Syrian Gregory III, who reigned in the 8th century.

paragraph_text: Lucrezia Borgia (; ; 18 April 1480 – 24 June 1519) was a Spanish-Italian noblewoman of the House of Borgia who was the daughter of Pope Alexander VI and Vannozza dei Cattanei. She reigned as the Governor of Spoleto, a position usually held by cardinals, in her own right.

paragraph_text: Pope Marcellinus (died 304) was the Bishop of Rome or Pope from 30 June 296 to his death in 304. According to the "Liberian Catalogue", he was a Roman, the son of a certain Projectus. His predecessor was Pope Caius.

paragraph_text: Pope Sixtus V limited the number of cardinals to 70, comprising six cardinal bishops, 50 cardinal priests, and 14 cardinal deacons. Starting in the pontificate of Pope John XXIII, that limit has been exceeded. At the start of 1971, Pope Paul VI set the number of cardinal electors at a maximum of 120, but set no limit on the number of cardinals generally. He also established a maximum age of eighty years for electors. His action deprived twenty-five living cardinals, including the three living cardinals elevated by Pope Pius XI, of the right to participate in a conclave.[citation needed] Popes can dispense from church laws and have sometimes brought the number of cardinals under the age of 80 to more than 120. Pope Paul VI also increased the number of cardinal bishops by giving that rank to patriarchs of the Eastern Catholic Churches.

paragraph_text: Roncalli was elected pope on 28 October 1958 at age 76 after 11 ballots. His selection was unexpected, and Roncalli himself had come to Rome with a return train ticket to Venice. He was the first pope to take the pontifical name of "John" upon election in more than 500 years, and his choice settled the complicated question of official numbering attached to this papal name due to the antipope of this name. Pope John XXIII surprised those who expected him to be a caretaker pope by calling the historic Second Vatican Council (1962–65), the first session opening on 11 October 1962. His passionate views on equality were summed up in his famous statement, "We were all made in God's image, and thus, we are all Godly alike." John XXIII made many passionate speeches during his pontificate, one of which was on the day that he opened the Second Vatican Council in the middle of the night to the crowd gathered in St. Peter's Square: "Dear children, returning home, you will find children: give your children a hug and say: This is a hug from the Pope!"

paragraph_text: Ursicinus, also known as Ursinus, was elected pope in a violently contested election in 366 as a rival to Pope Damasus I. He ruled in Rome for several months in 366–367, was afterwards declared antipope, and died after 381.

paragraph_text: Pope Benedict IV (; died 30 July 903) was Pope from 1 February 900 to his death in 903. The tenth-century historian Flodoard, who nicknamed him "the Great", commended his noble birth and public generosity. He succeeded Pope John IX (898–900) and was followed by Pope Leo V (903).

paragraph_text: Gioffre Borgia (born 1481 or 1482; died 1516 or 1517), also known as Goffredo (Italian), or Jofré Borja (Catalan), was the youngest son of Pope Alexander VI and Vannozza dei Cattanei, and a member of the House of Borgia. He was the youngest brother of Cesare, Giovanni, and Lucrezia Borgia.

paragraph_text: The Avignon Papacy was the period from 1309 to 1376 during which seven successive popes resided in Avignon (then in the Kingdom of Arles, part of the Holy Roman Empire, now in France) rather than in Rome. The situation arose from the conflict between the papacy and the French crown, culminating in the death of Pope Boniface VIII after his arrest and maltreatment by Philip IV of France. Following the further death of Pope Benedict XI, Philip forced a deadlocked conclave to elect the French Clement V as pope in 1305. Clement refused to move to Rome, and in 1309 he moved his court to the papal enclave at Avignon, where it remained for the next 67 years. This absence from Rome is sometimes referred to as the "Babylonian Captivity of the Papacy".

paragraph_text: The word pope derives from Greek πάππας meaning ``father ''. In the early centuries of Christianity, this title was applied, especially in the east, to all bishops and other senior clergy, and later became reserved in the west to the Bishop of Rome, a reservation made official only in the 11th century. The earliest record of the use of this title was in regard to the by then deceased Patriarch of Alexandria, Pope Heraclas of Alexandria (232 -- 248). The earliest recorded use of the title`` pope'' in English dates to the mid-10th century, when it was used in reference to Pope Vitalian in an Old English translation of Bede's Historia ecclesiastica gentis Anglorum.

paragraph_text: Pope Marcellus I (6 January 255 – 16 January 309) was the Bishop of Rome or Pope from May or June 308 to his death in 309. He succeeded Pope Marcellinus after a considerable interval. Under Maxentius, he was banished from Rome in 309, on account of the tumult caused by the severity of the penances he had imposed on Christians who had lapsed under the recent persecution. He died the same year, being succeeded by Pope Eusebius. His relics are under the altar of San Marcello al Corso in Rome. His third-class feast day is kept on January 16.

Question: In what year did the pope return from Avignon to the city Gioffre Borgia's father lived in when he died?
Answer: 1377