The Treaty of the Pyrenees was signed on 7 November 1659 to end the 1635–1659 war between France and Spain, a war that was initially a part of the wider Thirty Years' War.