 While he carried the title of viceroy of Egypt, his subordination to the Ottoman porte was merely nominal.Muhammad Ali massacred the Mamluks and established a dynasty that was to rule Egypt until the revolution of 1952.The introduction in 1820 of long-staple cotton transformed its agriculture into a cash-crop monoculture before the end of the century, concentrating land ownership and shifting production towards international markets.