In 1226 it was given to Robert I of Artois, son Louis VIII.
In 1640 Artois was reconquered by France, however only a portion of it was returned to France, the other part, which included Rely, stayed in Flanders.