The Crown Office, also known (especially in official papers) as the Crown Office in Chancery, is a section of the Ministry of Justice (formerly the Lord Chancellor's Department). It has custody of the Great Seal of the Realm, and has certain administrative functions in connection with the courts and the judicial process, as well as functions relating to the electoral process for House of Commons elections, to the keeping of the Roll of the Peerage, and to the preparation of royal documents such as warrants required to pass under the royal sign-manual, fiats, letters patent, etc. In legal documents, the Crown Office refers to the office of the Clerk of the Crown in Chancery.