Wijnendale Castle (, ) is a historic residence in Wijnendale, West Flanders in Belgium which was once a medieval castle. The present buildings largely date to a nineteenth century restoration, though parts of the north wing still date to the fifteenth century. One wing is currently inhabited by the present owners of the castle, while another is open to the public as a museum. History Counts of Flanders and Namur, 11th–14th century The first castle was built by Robert I, Count of Flanders, at the end of the 11th century and used as a base for military operations. In the 12th and 13th century, Wijnendale became a regular place of residence for the Counts of Flanders and for Philip, Count of Flanders, in particular. In 1297 Guy of Dampierre signed a treaty here with the English King Edward I. In 1298 Wijnendale was inherited by the Counts of Namur, and besieged and damaged in 1302 and 1325. It is probable that Blanche of Namur grew up here and that it was here that she met her future husband Magnus IV of Sweden in 1334. Dukes of Burgundy, Cleves and Ravenstein, 15th–16th century After a period of neglect, Count John III of Namur sold the fiefdom and castle in 1407 to John the Fearless, Duke of Burgundy, who gave it 3 years later to his son-in-law Adolph I, Duke of Cleves, as part of the dowry on his marriage to John's daughter Mary of Burgundy, the elder. In 1463 the castle passed to the Lords of Ravenstein, a junior branch of the House of Cleves. Adolph of Cleves, Lord of Ravenstein, and his son Philip of Cleves-Ravenstein transformed the castle into a beautiful mansion. Adolf had married, as his second wife, Anne, an illegitimate aunt and governess of Mary of Burgundy, who stayed from time to time at Wijnendale, as did her son Philip the Handsome. In 1482 Mary died of a fall from her horse here, an accident which changed the history of the Low Countries: under her authoritarian husband Maximilian I, Holy Roman Emperor, a period of more than 300 years of Habsburg rule began. In 1528, after the death of Philip of Cleves, Lord of Ravenstein, Wijnendale returned to the main branch of the Dukes of Cleves. Their relatives Charles V and Mary of Habsburg stayed more than once at the castle. In the second half of the