Mohammed Ali came to power in Egypt following the Mamluk Massacre. The Mamluks were a military caste in Egypt, and their massacre by Mohammed Ali marked a significant shift in power.