 The envoys of the Holy See and Philip III of Spain mediated a compromise in June 1608.According to the Treaty of Lieben, Rudolph retained most Lands of the Bohemian Crown and the title of Holy Roman Emperor, but had to renounce Hungary, Lower and Upper Austria and Moravia in favor of Matthias.Both brothers were forced to confirm the privileges of the Estates in their realms, including religious freedom.