Federal prince (German: Bundesfürsten, "Princes of the Federation") was the generic term for the royal heads of state (monarchs) of the various states making up the German Empire, with the exception of the states that were republics and Alsace-Lorraine which had a special status. The empire was a federal state, with its constituent states remaining sovereign states. Among the states, the majority were monarchies, 3 states were republics and Alsace-Lorraine was an imperial territory ruled by a steward. The states became part of the German Empire by an 1871 treaty. The head of the empire was granted the title German Emperor (with the title "Emperor of Germany" being deliberately avoided), and was simultaneously a federal prince as King of Prussia, the sovereign of its largest federal state. Of the princely heads of state, 4 held the title King (König) (the Kings of Prussia, Bavaria, Saxony, and Württemberg), 6 held the title Grand Duke (Großherzog), 5 held the title Duke (Herzog), and 7 held the title Prince (i.e. Sovereign Prince, Fürst). The heads of state of the city republics, where the concepts of nobility and royalty did not exist, were of equal standing to the federal princes and held the titles First Mayor and President of the Senate (Hamburg), Mayor and President of the Senate (Lübeck), and President of the Senate and Mayor (Bremen). The heads of state of the city republics were regarded as primi inter pares among the senators according to the states' republican constitutions, and these states were ruled by an oligarchy of hereditary Grand Burghers, also known as Hanseaten or patricians.