The delegations as they existed in 1859. Between the Congress of Vienna (1815) and the capture of Rome (1870), the Papal State was subdivided geographically into 17 apostolic delegations (delegazioni apostoliche) for administrative purposes. These were instituted by Pope Pius VII in a motu proprio of 6 July 1816: "Quando per ammirabile disposizione". A delegation was known as a legation (legazione) when governed by a cardinal. The four northernmost delegations—Bologna, Ferrara, Forlì and Ravenna, which comprised the region known as the Romagne (plural of Romagna)—were regularly governed by cardinals. Thus, the term "Legations" or Papal Legations (Legazioni pontificie), when used on its own, often refers to the Romagne. In an administrative reform of 1850, Pius IX grouped the delegations into five larger legations. The four original legations were joined into the legation of the Romagne. In 1859, the Kingdom of Sardinia invaded the Papal State and set up a military government, the United Provinces of Central Italy, that included the Romagne. Following a plebiscite, the Romagne were formally annexed to Sardinia in 1860. Motu proprio of 1816 Between 1798 and 1800, and again between 1809 and 1814, the Papal State was occupied by French troops and the pope was in exile. After the restoration of the Papal State by the Congress of Vienna, Pius VII set about reforming its administration, assisted by Cardinal Secretary of State Ercole Consalvi. The result was the motu prioprio of 6 July 1816 "on the organization of public administration". The existing 12 provinces were abandoned in favour of 17 delegations, although Rome and its hinterland formed a separate comarca. The new administration was modelled on that introduced by the French. The new delegations were grouped into three classes. At the head of each delegation was a delegate (delegato) who was appointed by the pope through an act of the secretary of state and who was invariably a prelate. Only in case the prelate was a cardinal did he assume the title of legate (legato), and cardinals could only be appointed to the delegations of the first class. Each delegate or legate was assisted by two assessors appointed by the pope, one for civil law matters and one for penal law matters, and by a locally selected Governmental Congregation (Congregazione governativa ), the composition of which varied according to the class of the delegation: In those of the first class, there were four members: two selected