When his father was killed at the Battle of Crécy against the troops of King Edward III of England in 1346, he inherited the French counties of Flanders, Nevers, and Rethel. In the Anglo-French conflict, the Flanders guilds, depending on the English wool trade, forced Louis to recognize King Edward III as his overlord and arranged an engagement to the daughter of the English king, Isabella. Louis managed to avoid this by fleeing to the court of King Philip VI of France. In 1347 he married Margaret of Brabant, which sparked a revolt in Ghent. Nevertheless, while the Black Death devastated the county and after Louis came to terms with the English king and in 1349 he could return to Flanders to succeed his father. In 1350 Louis gained credence by openly refusing to pay homage to the newly ascended King John II of France. When his father-in-law John III died without male heirs in 1355, he assumed the title of Duke of Brabant and moved into the neighbouring duchy, but was unable to wrest it from his sister-in-law Joanna, Duchess of Brabant. Though Louis managed to defeat the Brabantian forces in the Battle of Scheut near Anderlecht and capture the cities of Mechelen, Brussels, Antwerp, and Leuven, but he was unable to prevail against Joanna, backed by her husband Wenceslaus I, Duke of Luxembourg, and his mighty brother Emperor Charles IV. By the 1357 Peace of Ath he at least gained the rule over the small Lordship of Mechelen and the thriving city of Antwerp. Louis tried to govern as a realpolitiker and continued a policy of neutrality, which kept him in favor with both France and England during the continued conflicts of the Hundred Years' War, initiating a period of stability and relative affluence in Flanders. With regards to his internal policy, his main aim was to prevent the formation of a broad coalition against him, as happened against his father. Except for his last years, he was successful in preventing this. In 1357 Louis II had his seven-year-old daughter Margaret marry the minor Philip I, Duke of Burgundy. Philip died from plague four years later. As heir presumptive to her father's territories, she was a highly coveted bride courted by both Edmund of Langley, son of King Edward III of England, and Philip the Bold, son of King John II of France and Duke of Burgundy since 1363. After several years of tough bargaining, Count Louis II gave his consent to Philip and his brother King Charles V of France, in return he received the lordships of Romance Flanders and a payment of 200,000 livre tournois. The marriage of Margaret and Philip was celebrated at Saint Bavo Cathedral in Ghent on 19 June 1369. Though a capable ruler, Louis' lavish lifestyle burdened his county's finances and caused increasing disturbances. However, even in his latter years he managed to get the support of the Bruges citizens against revolting Ghent. The latter years of his rule were nevertheless marked by civil strife. In 1379, he obtained aid from his son-in-law, Philip II of Burgundy, to put down another Ghent revolt. The Flemings again rose in 1382 under Philip van Artevelde and expelled Count Louis from Flanders after the Battle of Beverhoutsveld; however, the influence of Philip procured a French army to relieve him, and the Flemings were decisively defeated at the Battle of Roosebeke. The citizens of Ghent continued to resist until after his death in 1384. His mother Margaret had died two years previously, leaving him the County of Artois and the Imperial Free County of Burgundy.