Egypt stopped producing wheat when America and others began producing in large quantities- lowering the price. They switched to producing cotton. This switch began during the War between the States- when the Ottomans called Egyptian cotton white gold.