following the defeat of the french, the porte assigned husrev pasha as the new wāli (governor) of egypt, tasking him to kill or imprison the surviving egyptian mamluk beys. many of these were freed by or fled with the british, while others held minya between upper and lower egypt.