 Between 1831 and 1840 , the Egyptian viceroy Muhammad Ali governed Haifa , after his son Ibrahim Pasha had <unk> its control from the Ottomans . When the Egyptian occupation ended and Acre declined , the importance of Haifa rose . 
