A chancery or chancellery is a medieval writing office, responsible for the production of official documents. The title of chancellor, for the head of the office, came to be held by important ministers in a number of states, and remains the title of the heads of government in modern Germany and Austria. From Wikipedia