Margaret was a daughter of the Duke
Louis IX "the Rich" of Bavaria-Landshut (1417–1479) from his marriage to
Amalia of Saxony (1436–1501), daughter of Elector
Frederick II of Saxony She married in 1474, with an elaborate celebration in Amberg (the "Amberg Wedding") Philip, who later became Elector Palatine
Philip the Upright (1448–1508). He had earlier turned down marriage candidates such as
Mary of Burgundy and Anna, heiress of the
county of Katzenelnbogen. More than 1,000 guests were present at the wedding, including 14 ruling princes. Large quantities of food were consumed, in addition to 110,000 liters of wine as well as 10,000 chickens. Two years after the marriage, Philip became Elector of the Palatinate. In 1482 Margaret left
Heidelberg, fleeing from the
plague, for Winzingen Castle, where she gave birth to Frederick, who later became Elector
Frederick II. Thanks to his wife, Philip had a good relationship with her brother Duke
George the Rich, whose children married each other in 1499. The dynastic union was the starting point of political and military cooperation between Bayern-Landshut and the Palatinate. George, who had no male heir of his own, bequeathed his territory to his son in law and the son of his sister. == Offspring ==