By the end of the century, Louis had no descendants. Both Mary and Hedwig had died, the former heavily pregnant and the latter soon after giving birth to a short-lived daughter. In 1440, Vladislaus III of Poland, son of Hedwig's widower and successor Władysław II Jagiełło, was elected king of Hungary. The election was fiercely disputed by Elizabeth of Luxembourg, daughter of Mary's widower and successor Sigismund. A two-year civil war ensued, ending upon Elizabeth's death in 1442. Vladislaus' own death in battle in 1444 ended the union.