Though Muhammad Ali 's chief aim was to establish a European-style military , and carve out a personal empire , he waged war initially on behalf of the Ottoman Sultan , Mahmud II , in Arabia and Greece , although he later came into open conflict with the Ottoman Empire .
At the start , Muhammad Ali waged war on behalf of the Ottoman Sultan , Mahmud II , in Arabia , and Greece .