Karl Marx analyzed the development of class structures throughout history. In primitive communism, members shared resources collectively. As social relationships and productive forces developed, two main classes emerged - the bourgeoisie who owned the means of production, and the proletariat who were laborers. Under capitalism, the minority bourgeoisie exploited the majority proletariat for profit. Workers became alienated and developed class consciousness of their situation. Marx argued this would lead to revolution and establishment of a classless society with social ownership. Later theorists like Gramsci and Althusser expanded on Marx's ideas, focusing on how ruling ideologies maintain capitalist hegemony and how economic, political, and ideological structures determine social conditions.