Middle Ages

A local notable in this period was Évrard, who lived in the ninth century and participated in many of the day's political and military affairs.

From the twelfth century, the fame of the Lille cloth fair began to grow. In 1144 Saint-Sauveur parish was formed, which would give its name to the modern-day quartier Saint-Sauveur.

The counts of Flanders, Boulogne, and Hainaut came together with England and the Holy Roman Empire of Germany and declared war on France and Philip II of France, a war that ended with the French victory at Bouvines in 1214. Infante Ferdinand, Count of Flanders was imprisoned and the county fell into dispute: it would be his wife, Jeanne, Countess of Flanders and Constantinople, who ruled the city. She was said to be well-loved by the residents of Lille, who by that time numbered 10,000.

In 1224, the monk Bertrand of Rains, doubtlessly encouraged by local lords, tried to pass himself off as Baldwin I of Constantinople (the father of Jeanne of Flanders), who had disappeared at the battle of Adrianople. He pushed the kingdoms of Flanders and Hainaut towards sedition against Jeanne in order to recover his land. She called her cousin, Louis VIII ("The Lion"). He unmasked the imposter, whom Countess Jeanne quickly had hanged. In 1226 the King agreed to free Infante Ferdinand, Count of Flanders. Count Ferrand died in 1233, and his daughter Marie soon after. In 1235, Jeanne granted a city charter by which city governors would be chosen each All Saint's Day by four commissioners chosen by the ruler. On February 6, 1236, she founded the Countess's Hospital (L'hospice de la comtesse), which remains one of the most beautiful buildings in Old Lille. It was in her honor that the hospital of the Regional Medical University of Lille was named "Jeanne of Flanders Hospital" in the 20th century.

The Countess died in 1244 in the Abbey of Marquette, leaving no heirs. The rule of Flanders and Hainaut thus fell to her sister, Margaret II, Countess of Flanders, then to Margaret's son, Guy of Dampierre. Lille fell under the rule of France from 1304 to 1369, after the battle of Mons-en-Pévèle.

The county of Flanders fell to the Duchy of Burgundy next, after the 1369 marriage of Margaret III, Countess of Flanders, and Philip the Bold, Duke of Burgundy. Lille thus became one of the three capitals of said Duchy, along with Brussels and Dijon. By 1445, Lille counted some 25,000 residents. Philip the Good, Duke of Burgundy, was even more powerful than the King of France, and made Lille an administrative and financial capital.

On 17 February 1454, one year after the taking of Constantinople by the Turks, Philip the Good organised a Pantagruelian banquet at his Lille palace, the still-celebrated "Feast of the Pheasant". There the Duke and his court undertook an oath to Christianity.

In 1477, at the death of the last duke of Burgundy, Charles the Bold, Mary of Burgundy married Maximilian of Austria, who thus became Count of Flanders. At the end of the reign of the Holy Roman Emperor Charles V, Spanish Flanders fell to his eldest son, and thus under the rule of Philip II of Spain, King of Spain. The city remained under Spanish rule until the reign of Philip IV of Spain.