The Divan-ı Hümâyûn, in English the Imperial Council, was the de facto cabinet of the Ottoman Empire for most of its history. Initially an informal gathering of the senior ministers presided over by the Sultan in person, in the mid-15th century the Council's composition and function became firmly regulated. The Grand Vizier, who became the Sultan's deputy as the head of government, assumed the role of chairing the Council, which comprised also the other viziers, charged with military and political affairs, the two kadi'askers or military judges, the defterdars in charge of finances, the nişancı in charge of the palace scribal service, and later the Kapudan Pasha, the head of the Ottoman Navy, and occasionally the beylerbey of Rumelia and the Agha of the Janissaries. The Council met in a dedicated building in the Second Courtyard of the Topkapi Palace, initially daily, then for four days a week by the 16th century. Its remit encompassed all matters of governance of the Empire, although the exact proceedings are no longer known. It was assisted by an extensive secretarial bureaucracy under the reis ül-küttab for the drafting of appropriate documents and the keeping of records. The Imperial Council remained the main executive organ of the Ottoman state until the mid-17th century, after which it lost most of its power to the office of the Grand Vizier. With the Tanzimat reforms of the early 19th century, it was eventually succeeded by a Western-style cabinet government.
Originally, the Imperial Council was probably an informal advisory body of senior statesmen, but also functioned as a court of law. In the 14th century and until the mid-15th century, it seems to have been headed by the Sultan in person, "suggesting that relations between sultan and viziers were still informal, with the sultan’s advisors in the role of allies as much as subordinates" according to the Ottomanist Colin Imber. Meetings were often public or semi-public affairs in which the Sultan would appear surrounded by his senior advisors and hear grievances of his subjects, dispense justice and make appointments to public office. In the case of an interregnum between the death of a Sultan and the arrival of his successor from the provinces, the Council was held by the senior councillors on their own.