War broke out between Charles and the Swiss after he invaded Switzerland. The invasion proved to be a tremendous mistake. On 2 March 1476, the Swiss attacked and defeated the Burgundians first at Grandson and then again a few months later, on June 22 of the same year, at Murten. The duke was killed at the Battle of Nancy on 5 January 1477, an event that marked the end of the Burgundian Wars.