Muhammad Ali's seizure of power in Egypt came following a long, three-way civil war between the Ottoman Empire, Egyptian Mamluks who had ruled Egypt for centuries, and Albanian mercenaries in the service of the Ottomans. The conflict ended in victory for the Albanians led by Muhammad Ali of Egypt (1769–1849).