As an integral part of Artois, Bully fell under the domination of the Counts of Flanders from 862 to 1191 before passing with the rest of the region to French control. Governed directly by the French Crown from 1191 to 1237, the town and region remained part of France until 1384, when they submitted to the rule of Burgundy. A brief return to French control between 1477 and 1492 ended in an absorption into Spanish territory, which lasted until the region returned definitively to France with the 1659 Treaty of the Pyrenees.