muhammad ali was fully conscious that the empire which he had so laboriously built up might at any time have to be defended by force of arms against his master sultan mahmud ii, whose whole policy had been directed to curbing the power of his too ambitious vassals, and who was under the influence of the personal enemies of the pasha of egypt, notably of husrev pasha, the grand vizier, who had never forgiven his humiliation in egypt in 1803.