The Flemish cities gained powers over their county. When Louis II, Count of Flanders, died without a male heir, these cities (Bruges, Ypres and Ghent) arranged a marriage between his daughter and the Duke of Burgundy. By doing this, they set in motion events that led to the Burgundian and, in 1478, the Habsburg Netherlands.