The office of Prime Minister of Egypt was established in 1878, together with the Cabinet of Egypt, after Khedive Isma'il Pasha agreed to turn his powers over to a cabinet of ministers. Nubar Pasha was thus the first Prime Minister of Egypt in the modern sense.