 After enjoying a brilliant period in the first half of the seventeenth century, papal diplomacy declined after the Peace of Westphalia in 1648, being assailed especially by royalists and Gallicans, and the number of functioning nuncios was reduced to two in the time of Napoleon, although in the same period, in 1805, Prussia became the first Protestant state to send an ambassador to Rome.There was a revival after the Congress of Vienna in 1815, which, while laying down that, in general, the order of precedence between ambassadors would be determined by the date of their arrival, allowed special precedence to be given to the nuncio, by which he would always be the dean of the diplomatic corps.In spite of the extinction of the Papal States in 1870, and the consequent loss of territorial sovereignty, and in spite of some uncertainty among jurists as to whether it could continue to act as an independent personality in international matters, the Holy See continued in fact to exercise the right to send and receive diplomatic representatives, maintaining relations with states that included the major powers of Russia, Prussia, and Austria-Hungary.