when the city was governed by the nuremberg patriciate, the castle remained a real estate, and the formal head of state was the emperor until 1806. in 1806, the city and the castle were annexed by the house of wittelsbach and were now a country town in the new kingdom of bavaria. nevertheless, the title of the hohenzollerns was preserved. the hohenzollers still held that dignity. this title had new political relevance since 1866. during the peace negotiations of 1866 (end of the war between prussia and the german confederation led by the imperial monarchy of austria, on which bavaria had fought), wilhelm i, interested in history, had desired the transfer of the murembrg kaiserburg and a vague promise of his nephew, louis ii, because the castle could only be ceded with the consent of the state's parliament for a genuine transfer of state property. the prussian representative, savigny, commented on the king's wish that, according to his wish, it was not a question of property acquisition, but merely the fact that he did not have to be a stranger on occasional visits to the castle of his fathers may live their as locals. bismarck also placed the greatest value on the fact that king wilhelm was not disappointed in this matter, in the case of a legitimate wish, while he considered the legal form of concession in this pure sentiment of feeling as indifferent. the bavarian flag, alongside the prussian flag also flew as a reference to the right to be the king of prussia.