Margaret's marriage ended due to political tensions and her infertility. Margaret was married to the King of France, but the marriage was not a happy one. The King of France was not interested in Margaret and had several mistresses. Margaret was also unable to have children, which was seen as a major failure at the time.
The Enchanting Reign of Margaret of Valois: How Well Do You Know the Queen Consort of France?