Stephen of Anjou (1332–1354), duke of Slavonia, the third surviving son of Charles Robert, died before his older brother. For this reason, he (and his son) had no chance to take over the rule neither in Hungary, nor in Poland. In 1350, he married Margaret of Bavaria. His marriage with a German princess made him unpopular in Poland. The Polish noblemen acknowledged Louis as Casimir III's sole heir in July 1351 only after he had promised that he would not allow Stephen to participate in the government of Poland. Margaret gave birth to a daughter Elizabeth (in 1370 she married Philip of Taranto), and a son John, who inherited Croatia, Dalmatia and Slavonia from his father, but he was still a child when he died in 1360.