 Gaza was culturally dominated by neighboring Egypt from the early 19th century ; Muhammad Ali of Egypt conquered it and most of Palestine in 1832 . Strangely , in 1833 , Muhammad Ali instructed his son Ibrahim Pasha not to purchase Gaza 's cotton harvest ( cotton production was Ali 's main source of wealth and Egypt 's production was low that year ) , instead allowing its residents to dispose of it how they wished . 
