 Margaret's first marriage, to Bouchard of Avesnes, was annulled in 1221 on orders from Joanna and the excommunication of Bouchard.By Bouchard, however, Margaret had already had three children, including John I of Avesnes.Nevertheless, in 1223, she remarried.