 Due to the change of rule in Egypt in 1878, the absolute jurisdictions given to rulers were diminished, and the divans were replaced by portfolios.During this period, the foreign portfolio was headed by prominent figures such as Boutros Ghali, who spent the longest period in office from 1894–1910.The foreign portfolio was put to an end after the declaration of the British Protectorate over Egypt in 1914.