After the October War, three schools of thought emerged in Egypt: the Marxists favored continuing the socialist trends that had developed in Egypt under the Soviet Union's influence, while a smaller group favored free market capitalism; prior to Sadat's election, the statists, proponents of the command economy with limited private investment, dominated the political scene. Sadat's infitah policy was heavily influenced by the free-market philosophy while still retaining some socialistic elements. It was not only ideologically but also politically motivated: by aligning himself with the West and with the rich and powerful members of Egyptian society, Sadat differentiated himself from the Nasser era while at the same time securing his position in power. In 1977, Infitah policies led to massive spontaneous riots involving hundreds of thousands of Egyptians when the state announced that it was retiring subsidies on basic foodstuffs.
For more information on the Infitah, see Anwar Sadat.