The Peace of Westphalia consisted of treaties signed in 1648 in Osnabrück and Münster, ending the Thirty Years' War (1618-1648) in the Holy Roman Empire and the Eighty Years' War between Spain and the Dutch Republic. Negotiated by Ferdinand III, Count Maximilian von Trauttmansdorff, and Cardinal Jules Mazarin, among others, the treaties established principles of state sovereignty, religious tolerance within states, and independent foreign policy rights. The settlement formally recognized Dutch and Swiss independence, reduced Holy Roman Emperor authority, strengthened German princes' autonomy, and designated France and Sweden as peace guarantors.