The county of Bar originated in the frontier fortress of Bar (from Latin
barra, barrier) that Duke
Frederick I of Upper Lorraine built on the bank of the river
Ornain around 960. The fortress was originally directed at the
counts of Champagne, who had made incursions into Frederick's
allodial lands. Frederick also confiscated some lands from the nearby
Abbey of Saint-Mihiel and settled his
knights on it. The original
Barrois was thus a mixture of the duke's allodial lands and confiscated church lands enfeoffed to knights. On the death of Duke
Frederick III in 1033, these lands passed to his sister,
Sophia (died 1093), who was the first person to associate the comital title with Bar, styling herself "Countess of Bar". Sophia's descendants, of the
House of Montbéliard, expanded Bar "by usurpation, conquest, purchase, and marriage" into a
de facto autonomous state perched between France and
Germany. Its population was
francophone and culturally French, and the counts were involved in French politics. Count
Reginald II (died 1170) married Agnes, a sister of the queen of France,
Adele. His son,
Henry I, died on the
Third Crusade in 1190. From 1214 to 1291 Bar was ruled by
Henry II and
Theobald II, who secured the western frontier with Champagne by granting fiefs to French nobles and buying their
homage. In 1297, King
Philip IV of France invaded the Barrois because Count
Henry III had given aid to his father-in-law,
Edward I of England, when the latter intervened against France in the
Franco-Flemish War. In the Treaty of Bruges of 1301 Henry was forced to recognise all of his county west of the river
Meuse as a fief of France. This was the origin of the
Barrois mouvant: a territory that was turned into a fief was said to have "moved" and entered the
mouvance of its suzerain. It was subject to the
Parliament of Paris. The Treaty of Bruges did not represent any expansion of French territory. The territory to the west of the Meuse was French since the
Treaty of Verdun of 843, but in 1301 it became a direct fief of the crown, including its allodial parts. ==Medieval duchy (1354–1508)==