..continued
At the end of the twelfth century, Avignon declared itself an independent republic, but independence was crushed in 1226 during the crusade against the Albigenses (the dualist Cathar heresy centered in neighboring Albi). After the citizens refused to open the gates of Avignon to King Louis VIII of France and the papal Legate, a three month siege ensued starting on 10 June 1226, and ending in capitulation by Avignon on 13 September 1226. Following the defeat, they were forced to pull down the ramparts and fill up the moat of the city.

On 7 May 1251 Avignon was made a common possession of counts Charles of Anjou and Alphonse de Poitiers, brothers of French king Saint Louis IX. On 25 August 1271, at the death of Alphonse de Poitiers, Avignon and the surrounding countship Comtat-Venaissin (which was governed by rectors since 1274) were united with the French crown.

Avignon and the Comtat did not become French until 1791. In 1274, the Comtat became a possession of the popes, with Avignon itself, self-governing, under the overlordship of the Angevin count of Provence (who was also king of "Sicily" [i.e., Naples]). The popes were allowed by the count of Provence (a papal vassal) to settle in Avignon in the early 1300s. The popes bought Avignon from the Angevin ruler for 80,000 florins in 1348. From then on until the French Revolution, Avignon and the Comtat were papal possessions, first under the schismatic popes of the Great Schism, then under the popes of Rome ruling via legates and vice-legates. The Black Death appeared at Avignon in 1348; two thirds of the population were afflicted, and almost all died.


History of Avignon
Avignon, written as Avennio or Avenio in the ancient texts and inscriptions, takes its name from the Avennius clan. Founded by the Gallic tribe of the Cavares or Cavari, it became the centre of an important Phocaean colony from Massilia (present Marseilles).

Under the Romans, Avenio was a flourishing city of Gallia Narbonensis, the first Transalpine province of the Roman
Empire, but very little from this period remains (a few fragments of the forum near Rue Molière).

During the inroads of the Goths, it was badly damaged in the fifth century and belonged in turn to the Goths, the kingdoms of Burgundy and of Arles, in the 12th Century. it fell into the hands of the Saracens and was destroyed in 737 by the Franks under Charles Martel for having sided with the ArabsBoso having been proclaimed Burgundian King of Provence, or of Arelat (after its capital Arles), by the Synod of Mantaille, at the death of Louis the Stammerer (879), Avignon ceased to belong to the Frankish kings.

In 1033, when Conrad II fell heir to the Kingdom of Arelat, Avignon passed to the Holy Roman Empire. With the German rulers at a distance, Avignon set up as a republic with a consular form of government, between 1135 and 1146. In addition to the Emperor, the Counts of Forcalquier, of Toulouse and of Provence exercised a purely nominal sway over the city; on two occasions, in 1125 and in 1251, the Counts of Toulouse and Provence divided their rights in regard to it, while the Count of Forcalquier resigned any right he possessed to the local Bishops and Consuls in 1135.