The Peace of Westphalia refers to the pair of peace treaties, the Treaty of Osnabrück and the Treaty of Münster, signed on May 15 and October 24 of 1648, which ended both the Thirty Years' War and the Eighty Years' War. The treaties involved Holy Roman Emperor Ferdinand III, the other German princes, Spain, France, Sweden and representatives of the Dutch Republic. The Treaty of the Pyrenees, signed in 1659, ending the war between France and Spain, is also often considered part of the overall agreement.