Originally a feudal county itself, Artois was annexed by the county of Flanders. It came to France in 1180 as a dowry of a Flemish princess, Isabelle of Hainaut, and was again made a separate county in 1237 for Robert, a grandson of Isabelle. Through inheritance, Artois came under the rule of the dukes of Burgundy in 1384. At the death of the fourth duke, Charles the Bold, Artois was inherited by the Habsburgs and passed to the dynasty's Spanish line. After the religious revolts of 1566 in the Netherlands, Artois briefly entered the Dutch Revolt in 1576, participating in the Pacification of Ghent until it formed the Union of Atrecht in 1579.