The Avignon Papacy was the period from 1309 to 1377 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.
Following the strife between Philip IV of France and Pope Boniface VIII and the death of his successor Benedict XI after only eight months in office, a deadlocked conclave finally elected Clement V, a Frenchman, as Pope in 1305. Clement 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. Finally, on September 13, 1376, Gregory XI abandoned Avignon and moved his court to Rome (arriving on January 17, 1377), officially ending the Avignon Papacy.
Despite this return, following Gregory's death on March 27, 1378, the breakdown in relations between the cardinals and Gregory's successor, Urban VI, gave rise to the Western Schism. This started a second line of Avignon popes, now regarded as illegitimate and known as antipopes. The second and final Avignon antipope, Benedict XIII, lost most of his support in 1398, including that of France; following five years of siege by the French, he fled to Perpignan on March 11, 1403. The schism ended in 1417 at the Council of Constance, after only two popes had reigned in opposition to the papacy in Rome.